Fix create view and alter generated column bugs

This commit is contained in:
2149
2023-08-10 09:42:26 +00:00
committed by ob-robot
parent b49c3559a2
commit b66dd1ebf2
15 changed files with 135 additions and 28 deletions

View File

@ -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

View File

@ -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;