diff options
author | unknown <evgen@moonbone.local> | 2007-01-09 22:35:30 +0300 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2007-01-09 22:35:30 +0300 |
commit | 78dff026afa9ff1fbb02f6f2acc1569895f9c371 (patch) | |
tree | b2b5d4b30464556f41818cbd86897eeb615b12f2 /sql/item_func.h | |
parent | f831f46ab2b110fcbad04db9108afe1416fea3ed (diff) | |
download | mariadb-git-78dff026afa9ff1fbb02f6f2acc1569895f9c371.tar.gz |
Bug#14171: Wrong internal default value for a BINARY field.
A BINARY field is represented by the Field_string class. The space character
is used as the filler for unused characters in such a field. But a BINARY field
should use \x00 instead.
Field_string:reset() now detects whether the current field is a BINARY one
and if so uses the \x00 character as a default value filler.
sql/field.h:
Bug#14171: Wrong internal default value for a BINARY field.
Field_string:reset() now detects whether the current field is a BINARY one
and if so uses the \x00 character as a default value filler.
mysql-test/r/type_binary.result:
Added a test case for the bug#14171: Wrong internal default value for a BINARY field.
mysql-test/t/type_binary.test:
Added a test case for the bug#14171: Wrong internal default value for a BINARY field.
Diffstat (limited to 'sql/item_func.h')
0 files changed, 0 insertions, 0 deletions