1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Extended test case to check that binary column

actually adds zeroes, not spaces at the end.
This commit is contained in:
unknown
2006-03-15 10:14:35 +02:00
parent 8ba02d7270
commit 4b4a13a150
2 changed files with 8 additions and 0 deletions

View File

@@ -636,7 +636,13 @@ INSERT INTO t1 VALUES ('test');
SELECT LENGTH(s) FROM t1;
LENGTH(s)
8
SELECT HEX(s) FROM t1;
HEX(s)
7465737400000000
ALTER TABLE t1 MODIFY s BINARY(10);
SELECT HEX(s) FROM t1;
HEX(s)
74657374000000000000
SELECT LENGTH(s) FROM t1;
LENGTH(s)
10