Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32937

Unexpected error message for CREATE USER when tables are locked

    XMLWordPrintable

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)
    • 10.5, 10.6, 10.11
    • 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.

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            jacob.moorman Jacob Moorman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.