mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
9112cdf58a
mysql-test/r/analyse.result: A fix for some crashing bug mysql-test/r/handler.result: A fix for some crashing bug mysql-test/t/analyse.test: A fix for some crashing bug mysql-test/t/handler.test: A fix for some crashing bug sql/sql_select.cc: A fix for some crashing bug
16 lines
410 B
Text
16 lines
410 B
Text
#
|
|
# 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 count(*) from t1 procedure analyse();
|
|
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();
|