用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.1 KiB

--source include/have_debug.inc
--echo #
--echo # Start of 5.7 tests
--echo #
--echo #
--echo # BUG#19792203 - FAILING ASSERTION: TRX->IS_DD_TRX == FALSE
--echo # WHEN KILLING QUERY WITH CONVERT_TZ
--echo #
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1);
COMMIT;
SET SESSION debug="+d,kill_query_on_open_table_from_tz_find";
--error ER_QUERY_INTERRUPTED
SELECT CONVERT_TZ(a, a, a) FROM t1;
SET SESSION debug="-d,kill_query_on_open_table_from_tz_find";
DROP TABLE t1;
--echo #
--echo # BUG#20507804 "FAILING ASSERTION: TRX->READ_ONLY && TRX->AUTO_COMMIT
--echo # && TRX->ISOLATION_LEVEL==1".
--echo #
--echo # New connection which is closed after the test is needed to reproduce
--echo # the original problem.
connect (con1,localhost,root,,);
SET DEBUG='+d,mysql_lock_tables_kill_query';
--error ER_QUERY_INTERRUPTED
SELECT CONVERT_TZ('2003-10-26 01:00:00', 'There-is-no-such-time-zone-1', 'UTC');
SET DEBUG='-d,mysql_lock_tables_kill_query';
START TRANSACTION WITH CONSISTENT SNAPSHOT;
COMMIT;
disconnect con1;
--source include/wait_until_disconnected.inc
connection default;
--echo #
--echo # End of 5.7 tests
--echo #