Fix create view and alter generated column bugs
This commit is contained in:
@ -312,12 +312,9 @@ select @a;
|
||||
+------+
|
||||
drop view if exists vv;
|
||||
create view vv as select @a;
|
||||
ERROR HY000: View's SELECT contains a variable or parameter
|
||||
desc vv;
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
| Field | Type | Null | Key | Default | Extra |
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
| @a | varbinary(1048576) | NO | | | |
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
ERROR 42S02: Table 'oceanbase.vv' doesn't exist
|
||||
|
||||
select @a := null;
|
||||
+------------+
|
||||
@ -333,10 +330,7 @@ select @a;
|
||||
+------+
|
||||
drop view if exists vv;
|
||||
create view vv as select @a;
|
||||
ERROR HY000: View's SELECT contains a variable or parameter
|
||||
desc vv;
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
| Field | Type | Null | Key | Default | Extra |
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
| @a | varbinary(1048576) | NO | | | |
|
||||
+-------+--------------------+------+-----+---------+-------+
|
||||
ERROR 42S02: Table 'oceanbase.vv' doesn't exist
|
||||
|
||||
|
||||
@ -52,7 +52,9 @@ select @a;
|
||||
--disable_warnings
|
||||
drop view if exists vv;
|
||||
--enable_warnings
|
||||
--error 1351
|
||||
create view vv as select @a;
|
||||
--error 1146
|
||||
desc vv;
|
||||
|
||||
select @a := null;
|
||||
@ -60,7 +62,9 @@ select @a;
|
||||
--disable_warnings
|
||||
drop view if exists vv;
|
||||
--enable_warnings
|
||||
--error 1351
|
||||
create view vv as select @a;
|
||||
--error 1146
|
||||
desc vv;
|
||||
|
||||
sleep 2;
|
||||
|
||||
Reference in New Issue
Block a user