diff options
author | cmiller@zippy.(none) <> | 2006-04-16 17:17:36 -0400 |
---|---|---|
committer | cmiller@zippy.(none) <> | 2006-04-16 17:17:36 -0400 |
commit | 7d282984f3df174c66f99f3af0a97d1a6c076526 (patch) | |
tree | b40174b3cbc583c8d1182864e3a22242236cde4d /mysql-test/t/mysql.test | |
parent | 8a7adb196d0e6dd5a5d2a9059510d184df79b504 (diff) | |
download | mariadb-git-7d282984f3df174c66f99f3af0a97d1a6c076526.tar.gz |
Only expand the empty string to the letters "NULL" if the column
does not have "NOT NULL" attribute set. Also, calculate the padding
characters more safely, so that a negative number doesn't cause it to
print MAXINT-n spaces.
Diffstat (limited to 'mysql-test/t/mysql.test')
-rw-r--r-- | mysql-test/t/mysql.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test index 95cba2743da..e76553f42e7 100644 --- a/mysql-test/t/mysql.test +++ b/mysql-test/t/mysql.test @@ -67,3 +67,8 @@ drop table t1; # --exec $MYSQL -t --default-character-set utf8 test -e "create table t1 (i int, j int, k char(25) charset utf8); insert into t1 (i) values (1); insert into t1 (k) values ('<----------------------->'); insert into t1 (k) values ('<-----'); insert into t1 (k) values ('Τη γλώσσα'); insert into t1 (k) values ('ᛖᚴ ᚷᛖᛏ'); select * from t1; DROP TABLE t1;" +# +# "DESCRIBE" commands may return strange NULLness flags. +# +--exec $MYSQL -t --default-character-set utf8 test -e "create table t1 (i int, j int not null, k int); insert into t1 values (null, 1, null); select * from t1; describe t1; drop table t1;" + |