From c754b00a1f79d1ea78b1a2d2c51a1b2281500fff Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Tue, 14 Jul 2009 17:03:51 -0700 Subject: The handling of NUL bytes in column data in the various output formats supported by the mysql client was inconsistent. (Bug #28203) --- mysql-test/t/mysql.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mysql-test/t/mysql.test') diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test index 91679c8c2ff..8e305e05aa2 100644 --- a/mysql-test/t/mysql.test +++ b/mysql-test/t/mysql.test @@ -372,5 +372,19 @@ drop tables t1, t2; # --exec $MYSQL --html test -e "select '< & >' as \`<\`" +# +# Bug #27884: mysql client + null byte +# +create table t1 (a char(5)); +insert into t1 values ('\0b\0'); +--exec $MYSQL test -e "select a from t1" +--exec $MYSQL -r test -e "select a from t1" +--exec $MYSQL -s test -e "select a from t1" +--exec $MYSQL --table test -e "select a from t1" +--exec $MYSQL --vertical test -e "select a from t1" +--exec $MYSQL --html test -e "select a from t1" +--exec $MYSQL --xml test -e "select a from t1" +drop table t1; + --echo --echo End of tests -- cgit v1.2.1