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

Attempt to write-lock a SEQUENCE table with log-bin enabled causes ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.2
    • Fix Version/s: 10.0.4
    • Component/s: None
    • Labels:
      None

      Description

      MariaDB [test]> select * from seq_1_to_2;
      +-----+
      | seq |
      +-----+
      |   1 |
      |   2 |
      +-----+
      2 rows in set (0.01 sec)
      
      MariaDB [test]> set binlog_format=statement;
      Query OK, 0 rows affected (0.00 sec)
      
      MariaDB [test]> lock table seq_1_to_2 write;
      ERROR 1661 (HY000): Cannot execute statement: impossible to write to binary log since both row-incapable engines and statement-incapable engines are involved.
      MariaDB [test]> set binlog_format=row;
      Query OK, 0 rows affected (0.00 sec)
      
      MariaDB [test]> lock table seq_1_to_2 write;
      ERROR 1661 (HY000): Cannot execute statement: impossible to write to binary log since both row-incapable engines and statement-incapable engines are involved.
      
      

      To reproduce, start server with log-bin and with SEQUENCE engine, run lock table .. write on a SEQUENCE table.

      I wouldn't be surprised that a SEQUENCE table cannot be write-locked (what's the point, anyway), but the error seems rather strange.

      Not sure it's anyhow related to table discovery, probably it isn't, but I'll file it just in case

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            pushed in 10.0-base

            Show
            serg Sergei Golubchik added a comment - pushed in 10.0-base

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m