Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL)
-
None
-
None
Description
Tested on 10.11.2 on Ubuntu 23.04
MariaDB [(none)]> create database tdb;
|
Query OK, 1 row affected (0.001 sec)
|
|
MariaDB [(none)]> use tdb;
|
Database changed
|
MariaDB [tdb]> create table sample (id integer, description text);
|
Query OK, 0 rows affected (0.014 sec)
|
|
MariaDB [tdb]> create user tdbuser1;
|
Query OK, 0 rows affected (0.009 sec)
|
|
MariaDB [tdb]> lock table sample read;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [tdb]> create user tdbuser2;
|
ERROR 1100 (HY000): Table 'db' was not locked with LOCK TABLES
|
It would seem in this case that Error 1192 (ER_LOCK_OR_ACTIVE_TRANSACTION) "Can't execute the given command because you have active locked tables or an active transaction" would make more sense.