1 SET TIME_ZONE =
"+00:00";
4 --echo #
Test of INSERT DELAYED ... SET ...
7 --echo # 2011-04-19 08:02:40 UTC
8 SET TIMESTAMP = 1303200160.123456;
10 eval CREATE
TABLE t1 ( a INT, b $timestamp NOT NULL DEFAULT CURRENT_$timestamp ON UPDATE CURRENT_$timestamp);
12 INSERT DELAYED INTO t1 SET a = 1;
16 SELECT * FROM t1 WHERE b = 0;
18 INSERT DELAYED INTO t1 SET a = 2, b =
'1980-01-02 10:20:30.405060';
26 --echo #
Test of INSERT DELAYED ... VALUES ...
29 --echo # 2011-04-19 08:04:01 UTC
30 SET TIMESTAMP = 1303200241.234567;
32 eval CREATE
TABLE t1 ( a INT, b $timestamp NOT NULL DEFAULT CURRENT_$timestamp ON UPDATE CURRENT_$timestamp);
34 INSERT DELAYED INTO t1 ( a ) VALUES (1);
38 INSERT DELAYED INTO t1 VALUES (2, '1977-12-19 12:34:56.789123');
45 --echo #
Test of a delayed insert
handler servicing two insert operations
46 --echo # with different sets of active defaults.
48 eval CREATE
TABLE t1 ( a INT, b $timestamp NOT NULL DEFAULT CURRENT_$timestamp ON UPDATE CURRENT_$timestamp);
50 --connect(con1, localhost, root,,)
51 --echo # 2011-04-19 08:04:01 UTC
52 SET TIMESTAMP = 1303200241.345678;
53 SET debug_sync =
'before_write_delayed SIGNAL parked WAIT_FOR go';
54 --send INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3)
57 SET debug_sync = 'now WAIT_FOR parked';
59 --connect(con2, localhost, root,,)
60 --echo
# 2011-04-19 08:04:01 UTC
61 SET TIME_ZONE=
"+03:00";
62 SET TIMESTAMP = 1303200241.456789;
63 --send INSERT DELAYED INTO t1 ( a, b ) VALUES (4, '1977-12-19 12:34:56.789123'), (5, '1977-12-19 12:34:57.891234'), (6, '1977-12-19 12:34:58.912345')
66 SET debug_sync = 'now SIGNAL go';
68 --let $wait_condition= SELECT COUNT(*) = 6 FROM t1
69 --source include/wait_condition.inc
80 --echo #
Test of early activation of
function defaults.
83 eval CREATE
TABLE t1 ( a INT, b $timestamp NOT NULL DEFAULT CURRENT_$timestamp ON UPDATE CURRENT_$timestamp);
85 SET TIMESTAMP = 1317235172.987654; # 2011-09-28 18:39:32 UTC
86 INSERT DELAYED INTO t1 ( a ) VALUES (1), (2), (3);
88 SET TIMESTAMP = 385503754.876543;
# 1982-03-20 20:22:34 UTC
89 INSERT DELAYED INTO t1 ( a ) VALUES (4), (5), (6);