mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
7f444caa0a
MDEV-11 - Modifed tests and result files to use explicit column lists in INSERT and SELECT statements
45 lines
1 KiB
Text
45 lines
1 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
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;
|
|
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');
|
|
connection con1;
|
|
LOCK TABLE t1 READ;
|
|
connection con0;
|
|
UPDATE t1 SET b = CONCAT(b,b);
|
|
connection con2;
|
|
SELECT a,b FROM t1;
|
|
connection con1;
|
|
UNLOCK TABLES;
|
|
connection con0;
|
|
connection con2;
|
|
# Should return the new data
|
|
a b
|
|
1 ff
|
|
2 bb
|
|
DROP TABLE t1;
|
|
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');
|
|
connection con1;
|
|
LOCK TABLE t1 READ;
|
|
connection con0;
|
|
UPDATE t1 SET b = CONCAT(b,b,b);
|
|
connection con2;
|
|
SET lock_wait_timeout = 1;
|
|
# Should return old data
|
|
SELECT HIGH_PRIORITY * FROM t1;
|
|
a b
|
|
1 f
|
|
2 b
|
|
connection con1;
|
|
UNLOCK TABLES;
|
|
connection con0;
|
|
disconnect con1;
|
|
disconnect con2;
|
|
disconnect con0;
|
|
connection default;
|
|
DROP TABLE t1;
|