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:
@ -176,3 +176,5 @@ Column 'k1' cannot be null
|
|||||||
insert into t1 values (NULL, NULL);
|
insert into t1 values (NULL, NULL);
|
||||||
Column 'k1' cannot be null
|
Column 'k1' cannot be null
|
||||||
drop table t1;
|
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, 3);
|
||||||
!$1048 insert into t1 values (NULL, NULL);
|
!$1048 insert into t1 values (NULL, NULL);
|
||||||
drop table t1;
|
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::STRING_ITEM:
|
||||||
case Item::REF_ITEM:
|
case Item::REF_ITEM:
|
||||||
case Item::NULL_ITEM:
|
case Item::NULL_ITEM:
|
||||||
|
case Item::VARBIN_ITEM:
|
||||||
{
|
{
|
||||||
bool maybe_null=item->maybe_null;
|
bool maybe_null=item->maybe_null;
|
||||||
Field *new_field;
|
Field *new_field;
|
||||||
|
Reference in New Issue
Block a user