mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
Cleaned up test; Removed wrong DROP TABLE commands and use standard table and database names. changed store_warning() -> push_warning_print()
16 lines
365 B
Plaintext
16 lines
365 B
Plaintext
#
|
|
# Test of procedure analyse
|
|
#
|
|
|
|
--disable_warnings
|
|
drop table if exists t1,t2;
|
|
--enable_warnings
|
|
create table t1 (i int, j int);
|
|
insert into t1 values (1,2), (3,4), (5,6), (7,8);
|
|
select * from t1 procedure analyse();
|
|
create table t2 select * from t1 procedure analyse();
|
|
select * from t2;
|
|
drop table t1,t2;
|
|
|
|
EXPLAIN SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE();
|