summaryrefslogtreecommitdiff
path: root/mysql-test/r/mysql.result
diff options
context:
space:
mode:
authorunknown <cmiller@zippy.(none)>2006-03-03 16:26:38 -0500
committerunknown <cmiller@zippy.(none)>2006-03-03 16:26:38 -0500
commit21d6e172f5cb182132f1869dac0707da98a462bb (patch)
treedf16c9d0887285cd9c8c342eb3670d4e177ad929 /mysql-test/r/mysql.result
parent88d4005b8aeae7f0252893590e5ea12b3a43b24e (diff)
downloadmariadb-git-21d6e172f5cb182132f1869dac0707da98a462bb.tar.gz
Bug#16859 involves truncating column data at NUL characters. Instead, the
client will now substitute spaces for NULs, so that the grid isn't messed up due to silently consumed NULs and that the full field is shown. client/mysql.cc: For non-numbers, print each character at a time, instead of using the fprintf() facility, which interprets an array of chars as a C string, which is necessarily NUL terminated. We mustn't terminate on NULs, and since we know the length of the data, we needn't. mysql-test/r/mysql.result: Add a test. mysql-test/t/mysql.test: Add a test.
Diffstat (limited to 'mysql-test/r/mysql.result')
-rw-r--r--mysql-test/r/mysql.result7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/mysql.result b/mysql-test/r/mysql.result
index 611813d9c3f..57067bea36b 100644
--- a/mysql-test/r/mysql.result
+++ b/mysql-test/r/mysql.result
@@ -69,3 +69,10 @@ c_cp932
++----------------------+------------+--------+
+| concat('>',col1,'<') | col2 | col3 |
++----------------------+------------+--------+
+| >a < | b | 123421 |
+| >a < | 0123456789 | 4 |
+| >abcd< | | 4 |
++----------------------+------------+--------+