Skip to content

Commit b48555e

Browse files
committed
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;
1 parent 2013a7f commit b48555e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/item.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4894,6 +4894,7 @@ class Item_default_value : public Item_field
48944894
bool send(Protocol *protocol, String *buffer);
48954895
int save_in_field(Field *field_arg, bool no_conversions);
48964896
table_map used_tables() const { return (table_map)0L; }
4897+
Item_field *field_for_view_update() { return 0; }
48974898

48984899
bool walk(Item_processor processor, bool walk_subquery, void *args)
48994900
{

0 commit comments

Comments
 (0)