summaryrefslogtreecommitdiff
path: root/sql/item_inetfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-06-29 21:10:35 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-30 11:43:02 +0200
commit4dcbb775aea9afc79d550661b384e0528c47eda4 (patch)
treeb42f0cdd90589a97f20a21089790af727995f4ab /sql/item_inetfunc.h
parentb3e11d33db5ab866c710ff8dd8653c314578f545 (diff)
downloadmariadb-git-4dcbb775aea9afc79d550661b384e0528c47eda4.tar.gz
parentheses in default
- Adding SHOW CREATE TABLE into all DEFAULT tests, to cover need_parentheses_in_default() for all items - Fixing a few items not to print parentheses in DEFAULT: spatial function-alike predicates, IS_IPV4 and IS_IPV6 functions, COLUMN_CHECK() and COLUMN_EXISTS().
Diffstat (limited to 'sql/item_inetfunc.h')
-rw-r--r--sql/item_inetfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_inetfunc.h b/sql/item_inetfunc.h
index 82a4405df1e..f5a0596d860 100644
--- a/sql/item_inetfunc.h
+++ b/sql/item_inetfunc.h
@@ -76,6 +76,7 @@ public:
public:
virtual longlong val_int();
+ bool need_parentheses_in_default() { return false; }
protected:
virtual bool calc_value(const String *arg) = 0;