File: time_zone_debug.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (57 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--source include/have_debug.inc
# CET is also know as MET, so using this include file for checking CET.
--source include/have_met_timezone.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 # Bug#29330089: SERVER TIMEZONE STAYS ON CEST AFTER CHANGING
--echo #               SUMMER TIME IS OVER
--echo #

SET DEBUG="+d,set_cet_before_dst";
SELECT @@SYSTEM_TIME_ZONE;
SET DEBUG="-d,set_cet_before_dst";
SET DEBUG="+d,set_cet_after_dst";
SELECT @@SYSTEM_TIME_ZONE;
SET DEBUG="-d,set_cet_after_dst";

--echo #
--echo # End of 5.7 tests
--echo #