| 1 |
--- lock.result |
| 2 |
+++ lock.reject |
| 3 |
@@ -42,34 +42,67 @@ |
| 4 |
UPDATE t1 SET id=1 WHERE id=-1; |
| 5 |
DROP TABLE t1,t2; |
| 6 |
CREATE TABLE t1 (i1 <INT_COLUMN>, nr <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 7 |
+ERROR HY000: Table 't1' was not locked with LOCK TABLES |
| 8 |
+# ERROR: Statement ended with errno 1100, errname ER_TABLE_NOT_LOCKED (expected to succeed) |
| 9 |
CREATE TABLE t2 (nr <INT_COLUMN>, nm <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 10 |
+ERROR HY000: Table 't2' was not locked with LOCK TABLES |
| 11 |
+# ERROR: Statement ended with errno 1100, errname ER_TABLE_NOT_LOCKED (expected to succeed) |
| 12 |
INSERT INTO t2 (nr,nm) VALUES (1,3); |
| 13 |
+ERROR HY000: Table 't2' was not locked with LOCK TABLES |
| 14 |
INSERT INTO t2 (nr,nm) VALUES (2,4); |
| 15 |
+ERROR HY000: Table 't2' was not locked with LOCK TABLES |
| 16 |
lock tables t1 write, t2 read; |
| 17 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 18 |
INSERT INTO t1 (i1,nr) SELECT 1, nr FROM t2 WHERE nm=3; |
| 19 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 20 |
INSERT INTO t1 (i1,nr) SELECT 2, nr FROM t2 WHERE nm=4; |
| 21 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 22 |
UNLOCK TABLES; |
| 23 |
LOCK TABLES t1 WRITE; |
| 24 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 25 |
INSERT INTO t1 (i1,nr) SELECT i1, nr FROM t1; |
| 26 |
-ERROR HY000: Table 't1' was not locked with LOCK TABLES |
| 27 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 28 |
+# ERROR: Statement ended with errno 1146, errname ER_NO_SUCH_TABLE (expected results: ER_TABLE_NOT_LOCKED) |
| 29 |
UNLOCK TABLES; |
| 30 |
LOCK TABLES t1 WRITE, t1 AS t1_alias READ; |
| 31 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 32 |
INSERT INTO t1 (i1,nr) SELECT i1, nr FROM t1 AS t1_alias; |
| 33 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 34 |
DROP TABLE t1,t2; |
| 35 |
-ERROR HY000: Table 't2' was not locked with LOCK TABLES |
| 36 |
+ERROR 42S02: Unknown table 'test.t1,test.t2' |
| 37 |
+# ERROR: Statement ended with errno 1051, errname ER_BAD_TABLE_ERROR (expected results: ER_TABLE_NOT_LOCKED) |
| 38 |
UNLOCK TABLES; |
| 39 |
DROP TABLE t1,t2; |
| 40 |
+ERROR 42S02: Unknown table 'test.t1,test.t2' |
| 41 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 42 |
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 43 |
CREATE TABLE t3 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 44 |
LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE; |
| 45 |
DROP TABLE t2, t3, t1; |
| 46 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 47 |
+ERROR HY000: Table 't1' was not locked with LOCK TABLES |
| 48 |
+# ERROR: Statement ended with errno 1100, errname ER_TABLE_NOT_LOCKED (expected to succeed) |
| 49 |
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 50 |
+ERROR HY000: Table 't2' was not locked with LOCK TABLES |
| 51 |
+# ERROR: Statement ended with errno 1100, errname ER_TABLE_NOT_LOCKED (expected to succeed) |
| 52 |
CREATE TABLE t3 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 53 |
+ERROR HY000: Table 't3' was not locked with LOCK TABLES |
| 54 |
+# ERROR: Statement ended with errno 1100, errname ER_TABLE_NOT_LOCKED (expected to succeed) |
| 55 |
LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE, t1 AS t4 READ; |
| 56 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 57 |
ALTER TABLE t2 ADD COLUMN c2 <INT_COLUMN>; |
| 58 |
+ERROR 42S02: Table 'test.t2' doesn't exist |
| 59 |
+# ERROR: Statement ended with errno 1146, errname ER_NO_SUCH_TABLE (expected to succeed) |
| 60 |
+# ------------ UNEXPECTED RESULT ------------ |
| 61 |
+# [ ALTER TABLE t2 ADD COLUMN c2 INT(11) /*!*/ /*Custom column options*/ ] |
| 62 |
+# The statement|command finished with ER_NO_SUCH_TABLE. |
| 63 |
+# ALTER TABLE or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 64 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 65 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 66 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 67 |
+# ------------------------------------------- |
| 68 |
DROP TABLE t1, t2, t3; |
| 69 |
+ERROR 42S02: Unknown table 'test.t1,test.t2,test.t3' |
| 70 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 71 |
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 72 |
LOCK TABLE t1 READ, t2 READ; |
| 73 |
@@ -106,6 +139,6 @@ |
| 74 |
FLUSH TABLE t1; |
| 75 |
DROP TEMPORARY TABLE t1; |
| 76 |
SELECT a,b FROM t1; |
| 77 |
-a b |
| 78 |
+ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist |
| 79 |
UNLOCK TABLES; |
| 80 |
DROP TABLE t1, t2; |