mariadb/mysql-test/main/sp2.test

38 lines
210 KiB
Text
Raw Normal View History

2020-05-19 11:54:42 +02:00
--source include/not_embedded.inc
#
# MDEV-18457 Assertion `(bitmap->map + (bitmap->full_head_size/6*6)) <=
# full_head_end' failed in _ma_check_bitmap
#
# test 1
#
CREATE DATABASE test1;
--disable_query_log
--let $a=`select repeat('a',3023)`
--eval CREATE PROCEDURE test1.sp1() SELECT '$a'
--let $a=`select repeat('a',114513)`
--eval CREATE PROCEDURE test.sp2() SELECT '$a'
--enable_query_log
CREATE PROCEDURE test1.sp3() BEGIN END;
--replace_column 5 # 6 #
SHOW PROCEDURE STATUS WHERE Db <> 'sys';
# Cleanup
DROP PROCEDURE sp2;
DROP DATABASE test1;
#
# MDEV-18457, test 2
#
--disable_query_log
INSERT INTO `mysql`.`event` VALUES ('test','ev_28716_248','UPDATE IGNORE `GLOBAL_STATUS` SET `VARIABLE_NAME` = 138 ORDER BY `VARIABLE_NAME` LIMIT 6','root@localhost',NULL,4,'SECOND','2020-05-18 08:23:01','2020-05-18 08:23:01',NULL,'2020-05-18 08:23:01','2020-05-18 08:27:07','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','UPDATE IGNORE `GLOBAL_STATUS` SET `VARIABLE_NAME` = 138 ORDER BY `VARIABLE_NAME` LIMIT 6'),('test','ev_28718_1','SELECT `VARIABLE_NAME` FROM `INNODB_SYS_TABLES` ORDER BY `N_COLS` LIMIT 14','root@localhost',NULL,5,'SECOND','2020-05-18 08:19:53','2020-05-18 08:19:53','2020-05-18 08:23:04','2020-05-18 08:19:53','2020-05-18 08:23:28','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','SELECT `VARIABLE_NAME` FROM `INNODB_SYS_TABLES` ORDER BY `N_COLS` LIMIT 14'),('test','ev_28714_146','UPDATE `oltp60` SET `k` = \'beside\' ORDER BY `c` LIMIT 5','root@localhost',NULL,1,'SECOND','2020-05-18 08:21:23','2020-05-18 08:21:23','2020-05-18 08:22:30','2020-05-18 08:21:23','2020-05-18 08:23:48','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','UPDATE `oltp60` SET `k` = \'beside\' ORDER BY `c` LIMIT 5'),('test','ev_28714_213','START TRANSACTION','root@localhost',NULL,2,'SECOND','2020-05-18 08:22:09','2020-05-18 08:22:09','2020-05-18 08:22:43','2020-05-18 08:22:09','2020-05-18 08:25:15','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','START TRANSACTION'),('test','ev_28716_2','INSERT IGNORE INTO `oltp154` ( `pad`, _next_field ) VALUES ( \'\', DEFAULT ) ;','root@localhost',NULL,1,'SECOND','2020-05-18 08:19:53','2020-05-18 08:19:53','2020-05-18 08:23:04','2020-05-18 08:19:53','2020-05-18 08:23:24','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','INSERT IGNORE INTO `oltp154` ( `pad`, ) VALUES ( \'\', DEFAULT ) ;'),('test','ev_28716_233','UPDATE IGNORE `help_category` SET `name` = NULL ORDER BY `url` LIMIT 8 ;','root@localhost',NULL,2,'SECOND','2020-05-18 08:22:43','2020-05-18 08:22:43',NULL,'2020-05-18 08:22:43','2020-05-18 08:25:01','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','UPDATE IGNORE `help_category` SET `name` = NULL ORDER BY `url` LIMIT 8 ;'),('test','ev_28716_189','INSERT IGNORE INTO `oltp21` ( `c` ) VALUES ( \'p\' )','root@localhost',NULL,1,'SECOND','2020-05-18 08:22:20','2020-05-18 08:22:20','2020-05-18 08:22:59','2020-05-18 08:22:20','2020-05-18 08:25:51','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','INSERT IGNORE INTO `oltp21` ( `c` ) VALUES ( \'p\' )'),('test','ev_28718_4','COMMIT ;','root@localhost',NULL,3,'SECOND','2020-05-18 08:19:53','2020-05-18 08:19:53','2020-05-18 08:22:34','2020-05-18 08:19:53','2020-05-18 08:22:56','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','COMMIT ;'),('test','ev_28718_129','INSERT INTO `innodb_table_stats` SELECT * FROM `time_zone_leap_second`','root@localhost',NULL,2,'SECOND','2020-05-18 08:21:42','2020-05-18 08:21:42','2020-05-18 08:22:59','2020-05-18 08:21:42','2020-05-18 08:24:59','ENABLED','DROP','STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION','',1,'SYSTEM','latin1','latin1_swedish_ci','latin1_swedish_ci','INSERT INTO `innodb_table_stats` SELECT * FROM
--enable_query_log
select count(*) from mysql.event;
flush tables;
--disable_result_log
show events;
--enable_result_log
truncate table mysql.event;