Commit b48555e9 authored by Sergei Golubchik's avatar Sergei Golubchik

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;
parent 2013a7fc
......@@ -4894,6 +4894,7 @@ class Item_default_value : public Item_field
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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment