Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/include/rpl_only_stmt_unsafe.inc |
# Check that the last statement executed harvested # # binlog_format | query_get_value(SHOW WARNINGS LIMIT 1, Message, 1) # --------------+--------------------------------------------------- # statement | Unsafe statement written to the binary log..... # <> statement | No such row (no warning at all) # let $my_value= query_get_value(SHOW WARNINGS LIMIT 1, Message, 1); if (`SELECT (NOT ('$my_value' LIKE 'Unsafe statement written to the binary log%' AND @@binlog_format = 'statement')) AND (NOT ('$my_value' LIKE 'No such row' AND @@binlog_format <> 'statement')) `) { --echo ERROR: --echo Last statement is --echo - unsafe in case of binlog_format = 'statement' --echo Expect to get a warning. --echo - safe in case of binlog_format <> 'statement' --echo Expect to get 'No such row'. --echo Result of SHOW WARNINGS via query_get_value : '$my_value' SELECT @@binlog_format; --echo Abort exit; } let $my_value= 'Garbage';