mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -6565,6 +6565,32 @@ SELECT v.id, v.foo AS bar FROM v1 v
|
||||
Drop View v1;
|
||||
Drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-24281: Execution of PREPARE from CREATE VIEW statement
|
||||
--echo #
|
||||
|
||||
create table t1 (s1 int);
|
||||
insert into t1 values (3), (7), (1);
|
||||
|
||||
prepare stmt from "
|
||||
create view v1 as select 's1', s1, 1 as My_exp_s1 from t1;
|
||||
";
|
||||
execute stmt;
|
||||
deallocate prepare stmt;
|
||||
show create view v1;
|
||||
select * from v1;
|
||||
drop view v1;
|
||||
|
||||
prepare stmt from "
|
||||
create view v1 as select 's1', s1, 1 as My_exp_s1 from t1;
|
||||
";
|
||||
execute stmt;
|
||||
--error ER_TABLE_EXISTS_ERROR
|
||||
execute stmt;
|
||||
deallocate prepare stmt;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.3 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user