1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-4028 - Converted rdiff files to uniform

MDEV-11 - Modifed tests and result files to use explicit column lists
          in INSERT and SELECT statements
This commit is contained in:
Elena Stepanova
2013-02-03 02:53:57 +04:00
parent 1701ee3357
commit 7f444caa0a
213 changed files with 7031 additions and 5955 deletions

View File

@ -7,15 +7,15 @@
-DROP TABLE t1;
-CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
-INSERT INTO t1 (a) VALUES (1),(2);
-SELECT * FROM t1;
-SELECT a FROM t1;
-a
-1
-2
-ALTER TABLE t1 DISCARD TABLESPACE;
-SELECT * FROM t1;
-SELECT a FROM t1;
-ERROR HY000: Got error -1 from storage engine
-ALTER TABLE t1 IMPORT TABLESPACE;
-SELECT * FROM t1;
-SELECT a FROM t1;
-a
-1
-2

View File

@ -44,12 +44,12 @@
+# Also, this problem may cause a chain effect (more errors of different kinds in the test).
+# -------------------------------------------
DELETE FROM t2 WHERE a=2;
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
1 c
-2 d
+3 d
SELECT * FROM t2;
SELECT a,b FROM t2;
a b
-1 a
+3 b
@ -90,7 +90,7 @@
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
+# Also, this problem may cause a chain effect (more errors of different kinds in the test).
+# -------------------------------------------
SELECT * FROM t2;
SELECT a,b FROM t2;
a b
-5 a
-5 a
@ -117,7 +117,7 @@
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
+# Also, this problem may cause a chain effect (more errors of different kinds in the test).
+# -------------------------------------------
SELECT * FROM t2;
SELECT a,b FROM t2;
a b
+1 a
+1 a

View File

@ -1,9 +1,20 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
13a20
> 1
--- suite/storage_engine/trx/cons_snapshot_repeatable_read.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/cons_snapshot_repeatable_read.reject 2013-01-23 02:44:05.336711176 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
connect con2,localhost,root,,;
@@ -11,6 +17,7 @@
# If consistent read works on this isolation level (REPEATABLE READ), the following SELECT should not return the value we inserted (1)
SELECT a FROM t1;
a
+1
COMMIT;
connection default;
disconnect con1;

View File

@ -1,9 +1,20 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
13a20
> 1
--- suite/storage_engine/trx/cons_snapshot_serializable.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/cons_snapshot_serializable.reject 2013-01-23 02:44:05.928703734 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
connect con2,localhost,root,,;
@@ -11,6 +17,7 @@
# If consistent read works on this isolation level (SERIALIZABLE), the following SELECT should not return the value we inserted (1)
SELECT a FROM t1;
a
+1
COMMIT;
connection default;
disconnect con1;

View File

@ -22,7 +22,7 @@
ROLLBACK;
+Warnings:
+Warning 1196 Some non-transactional changed tables couldn't be rolled back
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
-10000 foobar
-10000 foobar

View File

@ -22,7 +22,7 @@
ROLLBACK;
+Warnings:
+Warning 1196 Some non-transactional changed tables couldn't be rolled back
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
+0 test
1 a
@ -44,7 +44,7 @@
+Warning 1196 Some non-transactional changed tables couldn't be rolled back
INSERT INTO t1 (b,a) VALUES ('test1',10);
COMMIT;
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
+0 test
1 a

View File

@ -1,44 +1,94 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
18a25
> 1
25a33,34
> 1
> 2
30a40,43
> 1
> 101
> 102
> 2
34a48,49
> 101
> 102
39a55,56
> 101
> 102
44a62,63
> 101
> 102
51a71,72
> 101
> 102
54a76,77
> 301
> 302
58a82,83
> 101
> 102
61a87,88
> 301
> 302
65a93,94
> 101
> 102
68a98,99
> 301
> 302
--- suite/storage_engine/trx/level_read_committed.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/level_read_committed.reject 2013-01-23 02:44:06.572695636 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
@@ -16,6 +22,7 @@
connection con1;
SELECT a FROM t1;
a
+1
connection con2;
INSERT INTO t1 (a) VALUES (2);
# WARNING: Statement ended with errno 0, errname ''.
@@ -23,25 +30,37 @@
connection con1;
SELECT a FROM t1;
a
+1
+2
INSERT INTO t1 (a) SELECT a+100 FROM t1;
# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
SELECT a FROM t1;
a
+1
+101
+102
+2
connection con2;
SELECT a FROM t1;
a
1
+101
+102
2
COMMIT;
SELECT a FROM t1;
a
1
+101
+102
2
connection con1;
SELECT a FROM t1;
a
1
+101
+102
2
INSERT INTO t1 (a) SELECT a+200 FROM t1;
# WARNING: Statement ended with errno 0, errname ''.
@@ -49,23 +68,35 @@
SELECT a FROM t1;
a
1
+101
+102
2
201
202
+301
+302
COMMIT;
SELECT a FROM t1;
a
1
+101
+102
2
201
202
+301
+302
connection con2;
SELECT a FROM t1;
a
1
+101
+102
2
201
202
+301
+302
connection default;
disconnect con1;
disconnect con2;

View File

@ -1,7 +1,12 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
--- suite/storage_engine/trx/level_read_uncommitted.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/level_read_uncommitted.reject 2013-01-23 02:44:07.196687792 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

View File

@ -1,53 +1,96 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
18a25
> 1
25a33,34
> 1
> 2
27,28c36
< ERROR HY000: Lock wait timeout exceeded; try restarting transaction
< # WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
---
> # WARNING: Statement ended with errno 0, errname ''.
31a40,43
> 1
> 101
> 102
> 2
35a48,49
> 101
> 102
40a55,56
> 101
> 102
44a61,64
> 1
> 101
> 102
> 2
49a70,73
> 1
> 101
> 102
> 2
51a76,77
> 301
> 302
55a82,83
> 101
> 102
58a87,88
> 301
> 302
62a93,94
> 101
> 102
65a98,99
> 301
> 302
--- suite/storage_engine/trx/level_repeatable_read.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/level_repeatable_read.reject 2013-01-23 02:44:07.776680499 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
@@ -16,6 +22,7 @@
connection con1;
SELECT a FROM t1;
a
+1
connection con2;
INSERT INTO t1 (a) VALUES (2);
# WARNING: Statement ended with errno 0, errname ''.
@@ -23,46 +30,73 @@
connection con1;
SELECT a FROM t1;
a
+1
+2
INSERT INTO t1 (a) SELECT a+100 FROM t1;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-# WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
+# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
SELECT a FROM t1;
a
+1
+101
+102
+2
connection con2;
SELECT a FROM t1;
a
1
+101
+102
2
COMMIT;
SELECT a FROM t1;
a
1
+101
+102
2
connection con1;
SELECT a FROM t1;
a
+1
+101
+102
+2
INSERT INTO t1 (a) SELECT a+200 FROM t1;
# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
SELECT a FROM t1;
a
+1
+101
+102
+2
201
202
+301
+302
COMMIT;
SELECT a FROM t1;
a
1
+101
+102
2
201
202
+301
+302
connection con2;
SELECT a FROM t1;
a
1
+101
+102
2
201
202
+301
+302
connection default;
disconnect con1;
disconnect con2;

View File

@ -1,69 +1,103 @@
0a1,6
> # -- WARNING ----------------------------------------------------------------
> # According to I_S.ENGINES, MyISAM does not support transactions.
> # If it is true, the test will most likely fail; you can
> # either create an rdiff file, or add the test to disabled.def.
> # If transactions should be supported, check the data in Information Schema.
> # ---------------------------------------------------------------------------
14,15c20
< ERROR HY000: Lock wait timeout exceeded; try restarting transaction
< # WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
---
> # WARNING: Statement ended with errno 0, errname ''.
19a25
> 1
22,23c28
< ERROR HY000: Lock wait timeout exceeded; try restarting transaction
< # WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
---
> # WARNING: Statement ended with errno 0, errname ''.
27a33,34
> 1
> 2
32a40,43
> 1
> 101
> 102
> 2
35a47,50
> 1
> 101
> 102
> 2
38a54,57
> 1
> 101
> 102
> 2
41a61,64
> 1
> 101
> 102
> 2
46a70,77
> 1
> 101
> 102
> 2
> 201
> 202
> 301
> 302
49a81,88
> 1
> 101
> 102
> 2
> 201
> 202
> 301
> 302
52a92,99
> 1
> 101
> 102
> 2
> 201
> 202
> 301
> 302
--- suite/storage_engine/trx/level_serializable.result 2013-01-22 22:05:05.246633000 +0400
+++ suite/storage_engine/trx/level_serializable.reject 2013-01-23 02:44:08.384672856 +0400
@@ -1,3 +1,9 @@
+# -- WARNING ----------------------------------------------------------------
+# According to I_S.ENGINES, MyISAM does not support transactions.
+# If it is true, the test will most likely fail; you can
+# either create an rdiff file, or add the test to disabled.def.
+# If transactions should be supported, check the data in Information Schema.
+# ---------------------------------------------------------------------------
DROP TABLE IF EXISTS t1;
connect con1,localhost,root,,;
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
@@ -11,45 +17,86 @@
connection con2;
BEGIN;
INSERT INTO t1 (a) VALUES(1);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-# WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
+# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
connection con1;
SELECT a FROM t1;
a
+1
connection con2;
INSERT INTO t1 (a) VALUES (2);
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
-# WARNING: Statement ended with errno 1205, errname 'ER_LOCK_WAIT_TIMEOUT'.
+# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
connection con1;
SELECT a FROM t1;
a
+1
+2
INSERT INTO t1 (a) SELECT a+100 FROM t1;
# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
SELECT a FROM t1;
a
+1
+101
+102
+2
connection con2;
SELECT a FROM t1;
a
+1
+101
+102
+2
COMMIT;
SELECT a FROM t1;
a
+1
+101
+102
+2
connection con1;
SELECT a FROM t1;
a
+1
+101
+102
+2
INSERT INTO t1 (a) SELECT a+200 FROM t1;
# WARNING: Statement ended with errno 0, errname ''.
# If it differs from the result file, it might indicate a problem.
SELECT a FROM t1;
a
+1
+101
+102
+2
+201
+202
+301
+302
COMMIT;
SELECT a FROM t1;
a
+1
+101
+102
+2
+201
+202
+301
+302
connection con2;
SELECT a FROM t1;
a
+1
+101
+102
+2
+201
+202
+301
+302
connection default;
disconnect con1;
disconnect con2;

View File

@ -13,7 +13,7 @@
@@ -14,16 +20,33 @@
1 a
3 a
SELECT * FROM t1 WHERE b='a' LOCK IN SHARE MODE;
SELECT a,b FROM t1 WHERE b='a' LOCK IN SHARE MODE;
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction
+a b
+1 a
@ -38,7 +38,7 @@
+# -------------------------------------------
connection con1;
COMMIT;
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
-1 a
+1 c

View File

@ -25,7 +25,7 @@
+# -------------------------------------------
connection con1;
COMMIT;
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
-1 a
+1 c

View File

@ -31,7 +31,7 @@
+Warning 1196 Some non-transactional changed tables couldn't be rolled back
UPDATE t1 SET b = 'upd' WHERE a = 10050;
COMMIT;
SELECT * FROM t1;
SELECT a,b FROM t1;
a b
10050 upd
10050 upd

View File

@ -12,21 +12,21 @@
connect con2,localhost,root,,;
@@ -9,17 +15,22 @@
connection con1;
SELECT * FROM t1;
SELECT a FROM t1;
a
+1
connection con2;
INSERT INTO t1 (a) VALUES (2);
XA END 'xa1';
connection con1;
SELECT * FROM t1;
SELECT a FROM t1;
a
+1
+2
connection con2;
XA PREPARE 'xa1';
connection con1;
SELECT * FROM t1;
SELECT a FROM t1;
a
+1
+2
@ -78,7 +78,7 @@
+Warnings:
+Warning 1196 Some non-transactional changed tables couldn't be rolled back
connection con1;
SELECT * FROM t1;
SELECT a FROM t1;
a
@@ -93,4 +114,6 @@
2

View File

@ -20,7 +20,7 @@
+ERROR XAE04: XAER_NOTA: Unknown XID
XA COMMIT 'xa2';
+ERROR XAE04: XAER_NOTA: Unknown XID
SELECT * FROM t1;
SELECT a FROM t1;
a
+1
+2