1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Expanding a binary field should result in 0x00-filled positions, not 0x20

(ASCII space).  For Bug#16857.
This commit is contained in:
cmiller@zippy.(none)
2006-03-02 19:59:49 -05:00
parent 1bacdef0a7
commit 5147bb8e9b
3 changed files with 48 additions and 1 deletions

View File

@ -89,3 +89,15 @@ show create table t1;
drop table t1;
# End of 4.1 tests
#
# Bug#16857
#
create table t1 (col1 binary(4));
insert into t1 values ('a'),('a ');
select hex(col1) from t1;
alter table t1 modify col1 binary(10);
select hex(col1) from t1;
insert into t1 values ('b'),('b ');
select hex(col1) from t1;
drop table t1;