config root man

Current Path : /usr/opt/mysql57/mysql-test/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/t/mysqldump_bug29998457.test

# Embedded server doesn't support external clients
--source include/not_embedded.inc

--echo # Bug#29998457 MYSQLDUMP GENERATES INVALID INSERT STATEMENTS WITH VARBINARY COLUMNS

SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE = '';
let $mysqldumpfile = $MYSQLTEST_VARDIR/tmp/bug29998457.sql;
CREATE DATABASE test_bug29998457;
USE test_bug29998457;

--echo #Pre-test cleanup
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

CREATE TABLE t1 (
pk INT,
v1 VARCHAR(255),
v2 VARCHAR(255),
v3 VARCHAR(255),
v4 VARCHAR(128),
v5 VARCHAR(64),
v6 VARCHAR(16),
v7 VARCHAR(16),
v8 VARCHAR(8),
v9 VARBINARY(32),
v10 VARBINARY(32));

SELECT '12345678901234567890123456789012345678901234567890' INTO @s;

SELECT CONCAT(@s, @s, @s, @s, @s) INTO @s1;

INSERT INTO t1 VALUES (1, @s1, @s1, @s1, @s1, @s1, @s1, @s1, @s1, '','NULL');

SELECT * FROM test_bug29998457.t1;

--exec $MYSQL_DUMP --skip-comments test_bug29998457 > $mysqldumpfile
--exec $MYSQL --show-warnings test_bug29998457 < $mysqldumpfile

# Ensure that there were no invalid insert statements generated in the mysqldump
# output and the dump was restored properly.
SELECT * FROM test_bug29998457.t1;

#Cleanup
--remove_file $mysqldumpfile
DROP DATABASE test_bug29998457;
SET SQL_MODE = @OLD_SQL_MODE;

Man Man