Debian Codegraph @

mysql-test/suite/binlog/r/binlog_innodb_stm.result

raw
1 create table categories(
2 cat_id int not null primary key,
3 cat_name varchar(255) not null,
4 cat_description text
5 ) engine=innodb;
6 create table products(
7 prd_id int not null auto_increment primary key,
8 prd_name varchar(355) not null,
9 prd_price decimal,
10 cat_id int not null,
11 foreign key fk_cat(cat_id)
12 references categories(cat_id)
13 on update cascade
14 ) engine=innodb;
15 insert into categories values (1, 'drinks', 'drinks');
16 update categories set cat_description=2 where cat_id=1;
17 drop table products, categories;
18 #
19 # MDEV-35081 - Assertion `!n_mysql_tables_in_use' failed after error
20 # upon binary logging of DML involving vector table
21 #
22 SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
23 CREATE TABLE t (pk INT PRIMARY KEY, v VECTOR(1) NOT NULL, VECTOR(v)) ENGINE=InnoDB;
24 UPDATE t SET pk = 2 WHERE pk = 1;
25 ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
26 DROP TABLE t;