120
# Test LOCK TABLE on system tables. See bug#9953: CONVERT_TZ requires
121
# mysql.time_zone_name to be locked.
124
DROP TABLE IF EXISTS t1;
127
CREATE TABLE t1 (i INT);
129
LOCK TABLES mysql.time_zone READ, t1 READ;
132
LOCK TABLES mysql.time_zone READ, t1 WRITE;
135
LOCK TABLES mysql.time_zone READ;
138
LOCK TABLES mysql.time_zone WRITE;
141
# If at least one system table is locked for WRITE, then all other
142
# tables should be system tables locked also for WRITE.
143
LOCK TABLES mysql.time_zone READ, t1 READ;
145
--error ER_WRONG_LOCK_OF_SYSTEM_TABLE
146
LOCK TABLES mysql.time_zone WRITE, t1 READ;
148
--error ER_WRONG_LOCK_OF_SYSTEM_TABLE
149
LOCK TABLES mysql.time_zone WRITE, t1 WRITE;