Commit 1a45c839 authored by unknown's avatar unknown

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

parent 3a894149
......@@ -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;
......@@ -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;
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment