config root man

Current Path : /usr/opt/mysql57/mysql-test/suite/binlog/t/

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
Upload File :
Current File : //usr/opt/mysql57/mysql-test/suite/binlog/t/binlog_row_query_log_events.test

--source include/have_binlog_format_row.inc

#######################################################################
# BUG#13799489: ROWS_QUERY_LOG_EVENTS CORRUPTED IF QUERY LONGER THAN 255 BYTES
#
# Check that queries with more than 255 characters are not truncated
# when stored on Rows_query_log_events.
SET @@SESSION.BINLOG_ROWS_QUERY_LOG_EVENTS = 1;
CREATE TABLE t1 (a VARCHAR(256));

--let $as= `SELECT REPEAT('a', 256)`
--let $query= INSERT INTO t1 VALUES ('$as')

--let $assert_text= Logged query must match the one issued.
--let $binlog_file= query_get_value("SHOW MASTER STATUS", File, 1)
--let $binlog_position= query_get_value("SHOW MASTER STATUS", Position, 1)
--eval $query

--let $row_number= 3
--let $logged_query= query_get_value(SHOW BINLOG EVENTS IN "$binlog_file" FROM $binlog_position, Info, $row_number)
--let $assert_cond= `SELECT "$logged_query" LIKE "%$query"`
--source include/assert.inc

# Clean up
DROP TABLE t1;

Man Man