mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Added test case forlp:875797 Using 'innodb_sys_indexes' causes core dump
This commit is contained in:
17
mysql-test/suite/percona/innodb_sys_index.result
Normal file
17
mysql-test/suite/percona/innodb_sys_index.result
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
drop table if exists t1;
|
||||||
|
Warnings:
|
||||||
|
Note 1051 Unknown table 't1'
|
||||||
|
select @@version_comment limit 1 ;
|
||||||
|
@@version_comment
|
||||||
|
Source distribution
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
CREATE TABLE test.t1 ( `a` SERIAL NOT NULL , `b` VARCHAR( 255 ) NOT NULL , INDEX ( `b` ) ) ENGINE = InnoDB ;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
drop table test.t1;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
CREATE TABLE test.t1 ( `a` SERIAL NOT NULL , `b` VARCHAR( 255 ) NOT NULL , INDEX ( `b` ) ) ENGINE = InnoDB ;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
drop table test.t1;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
21
mysql-test/suite/percona/innodb_sys_index.test
Normal file
21
mysql-test/suite/percona/innodb_sys_index.test
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--source include/big_test.inc
|
||||||
|
--source include/have_innodb.inc
|
||||||
|
|
||||||
|
drop table if exists t1;
|
||||||
|
#
|
||||||
|
# test for bug LP#875797 "Using 'innodb_sys_indexes' causes core dump"
|
||||||
|
#
|
||||||
|
select @@version_comment limit 1 ;
|
||||||
|
--disable_result_log
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
CREATE TABLE test.t1 ( `a` SERIAL NOT NULL , `b` VARCHAR( 255 ) NOT NULL , INDEX ( `b` ) ) ENGINE = InnoDB ;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
drop table test.t1;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
CREATE TABLE test.t1 ( `a` SERIAL NOT NULL , `b` VARCHAR( 255 ) NOT NULL , INDEX ( `b` ) ) ENGINE = InnoDB ;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
SELECT COUNT(*) FROM `information_schema`.`INNODB_SYS_INDEXES` ;
|
||||||
|
drop table test.t1;
|
||||||
|
SHOW TABLE STATUS FROM `information_schema` LIKE 'INNODB\_SYS\_INDEXES%' ;
|
||||||
|
--enable_result_log
|
Reference in New Issue
Block a user