summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-07-21 17:46:41 +0200
committerSergei Golubchik <serg@mariadb.org>2016-08-27 16:59:11 +0200
commitb48555e9c9c526789b1e42ce084825c3037f0451 (patch)
tree8c5883f294f5f12dfd1330eed51e537610f10454 /sql/item.h
parent2013a7fc29bd304c575ea84fbb79b4e94cf90216 (diff)
downloadmariadb-git-b48555e9c9c526789b1e42ce084825c3037f0451.tar.gz
fix: DEFAULT() in a view should be not updatable
as in create table t1 (a int); create view v1 as select default(a) as NOT_UPDATABLE from t1;
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index e43b4d50e46..6988543e19d 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -4894,6 +4894,7 @@ public:
bool send(Protocol *protocol, String *buffer);
int save_in_field(Field *field_arg, bool no_conversions);
table_map used_tables() const { return (table_map)0L; }
+ Item_field *field_for_view_update() { return 0; }
bool walk(Item_processor processor, bool walk_subquery, void *args)
{