mariadb/mysql-test/suite/storage_engine/insert_low_prio.result
Elena Stepanova 7f444caa0a MDEV-4028 - Converted rdiff files to uniform
MDEV-11 - Modifed tests and result files to use explicit column lists
          in INSERT and SELECT statements
2013-02-03 02:53:57 +04:00

39 lines
948 B
Text

DROP TABLE IF EXISTS t1;
SET @low_prio_updates = @@global.low_priority_updates;
SET @concur_insert = @@global.concurrent_insert;
SET GLOBAL concurrent_insert = NEVER;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
INSERT INTO t1 (a,b) VALUES (1,'f'),(2,'b');
connect con0,localhost,root,,;
SET lock_wait_timeout = 4;
connect con1,localhost,root,,;
SET lock_wait_timeout = 4;
connect con2,localhost,root,,;
SET lock_wait_timeout = 4;
connection con1;
SELECT SLEEP(1) FROM t1;
connection con0;
INSERT LOW_PRIORITY INTO t1 (a,b) VALUES (3,'z');
connection con2;
# Should return only 2 rows
SELECT SLEEP(1) FROM t1;
SLEEP(1)
0
0
connection con1;
SLEEP(1)
0
0
connection con0;
SELECT a,b FROM t1;
a b
1 f
2 b
3 z
disconnect con0;
disconnect con1;
disconnect con2;
connection default;
SET GLOBAL low_priority_updates = @low_prio_updates;
SET GLOBAL concurrent_insert = @concur_insert;
DROP TABLE t1;