diff options
author | <Dao-Gang.Qu@sun.com> | 2010-08-30 14:03:28 +0800 |
---|---|---|
committer | <Dao-Gang.Qu@sun.com> | 2010-08-30 14:03:28 +0800 |
commit | 0688c086a0739333bf642f77f85f9f36cc0dcbef (patch) | |
tree | 312b96bab339ccfd6d986901ceed2fe87e7ccb8d /mysql-test/extra/binlog_tests | |
parent | 19908377b81d867e65b01c4cfdc8ae28ebe7c846 (diff) | |
download | mariadb-git-0688c086a0739333bf642f77f85f9f36cc0dcbef.tar.gz |
Bug #54579 Wrong unsafe warning for INSERT DELAYED in SBR
The lock_type is upgrade to TL_WRITE from TL_WRITE_DELAYED for
INSERT DELAYED when inserting multi values in one statement.
It's safe. But it causes an unsafe warning in SBR.
Make INSERT DELAYED safe by logging it as INSERT without DELAYED.
Diffstat (limited to 'mysql-test/extra/binlog_tests')
-rw-r--r-- | mysql-test/extra/binlog_tests/binlog_insert_delayed.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/extra/binlog_tests/binlog_insert_delayed.test b/mysql-test/extra/binlog_tests/binlog_insert_delayed.test index c99d0b86be3..2526b2dd149 100644 --- a/mysql-test/extra/binlog_tests/binlog_insert_delayed.test +++ b/mysql-test/extra/binlog_tests/binlog_insert_delayed.test @@ -52,13 +52,19 @@ inc $count; FLUSH TABLES; source include/show_binlog_events.inc; -insert delayed into t1 values (null),(null),(null),(null); +RESET MASTER; +insert /* before delayed */ delayed /* after delayed */ into t1 values (null),(null),(null),(null); inc $count; inc $count; inc $count; inc $count; --source include/wait_until_rows_count.inc -insert delayed into t1 values (null),(null),(400),(null); +insert /*! delayed */ into t1 values (null),(null),(400),(null); inc $count; inc $count; inc $count; inc $count; --source include/wait_until_rows_count.inc +if (`SELECT @@SESSION.BINLOG_FORMAT = 'STATEMENT'`) { + FLUSH TABLES; + source include/show_binlog_events.inc; +} + select * from t1; drop table t1; |