MDEV-4451 Attempt to write-lock a SEQUENCE table with log-bin enabled causes ER_BINLOG_ROW_ENGINE
mark the SEQUENCE engine as both SBR and RBR capable :)
This commit is contained in:
parent
08a1ac9d35
commit
e53b603f7c
@ -269,3 +269,7 @@ master-bin.000001 # Query # # use test; insert t1 select * from seq_1_to_10
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
drop table t1;
|
||||
drop table seq_1_to_1;
|
||||
set binlog_format=statement;
|
||||
lock table seq_1_to_2 write;
|
||||
set binlog_format=row;
|
||||
lock table seq_1_to_2 write;
|
||||
|
@ -95,3 +95,12 @@ drop table t1;
|
||||
# MDEV-4449 SEQUENCE depends on TEST_SQL_DISCOVERY for discovering tables upon DDL
|
||||
#
|
||||
drop table seq_1_to_1;
|
||||
|
||||
#
|
||||
# MDEV-4451 Attempt to write-lock a SEQUENCE table with log-bin enabled causes ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE
|
||||
#
|
||||
set binlog_format=statement;
|
||||
lock table seq_1_to_2 write;
|
||||
set binlog_format=row;
|
||||
lock table seq_1_to_2 write;
|
||||
|
||||
|
@ -45,7 +45,8 @@ private:
|
||||
public:
|
||||
ha_seq(handlerton *hton, TABLE_SHARE *table_arg)
|
||||
: handler(hton, table_arg), seqs(0) { }
|
||||
ulonglong table_flags() const { return 0; }
|
||||
ulonglong table_flags() const
|
||||
{ return HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE; }
|
||||
|
||||
/* open/close/locking */
|
||||
int create(const char *name, TABLE *table_arg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user