1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for the bug #801: create table t1 select x'41'; doesn't work

This commit is contained in:
ram@mysql.r18.ru
2003-07-11 14:17:18 +05:00
parent df0f59fcbd
commit 4ca9718375
3 changed files with 10 additions and 0 deletions

View File

@ -176,3 +176,5 @@ Column 'k1' cannot be null
insert into t1 values (NULL, NULL);
Column 'k1' cannot be null
drop table t1;
create table t1 select x'4132';
drop table t1;

View File

@ -127,3 +127,10 @@ insert into t1 values ("a", 1), ("b", 2);
!$1048 insert into t1 values (NULL, 3);
!$1048 insert into t1 values (NULL, NULL);
drop table t1;
#
# Bug # 801
#
create table t1 select x'4132';
drop table t1;

View File

@ -3664,6 +3664,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
case Item::STRING_ITEM:
case Item::REF_ITEM:
case Item::NULL_ITEM:
case Item::VARBIN_ITEM:
{
bool maybe_null=item->maybe_null;
Field *new_field;