1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

The handling of NUL bytes in column data in the various output formats

supported by the mysql client was inconsistent. (Bug #28203)
This commit is contained in:
Jim Winstead
2009-07-14 17:03:51 -07:00
parent f0f4efd77e
commit c754b00a1f
3 changed files with 67 additions and 6 deletions

View File

@ -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