[MDEV-4451] Attempt to write-lock a SEQUENCE table with log-bin enabled causes ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE Created: 2013-04-28  Updated: 2013-06-18  Resolved: 2013-06-18

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.2
Fix Version/s: 10.0.4

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates

 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



 Comments   
Comment by Sergei Golubchik [ 2013-06-18 ]

pushed in 10.0-base

Generated at Thu Feb 08 06:56:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.