3
drop table if exists t1;
7
# varbinary as string and number
10
select 0x31+1,concat(0x31)+1,-0xf;
11
select x'31',X'ffff'+0;
14
# Test of hex constants in WHERE:
17
create table t1 (ID int not null auto_increment,UNIQ bigint not null,primary key (ID),unique (UNIQ) );
18
insert into t1 set UNIQ=0x38afba1d73e6a18a;
19
insert into t1 set UNIQ=123;
20
explain extended select * from t1 where UNIQ=0x38afba1d73e6a18a;
24
# Test error conditions
26
--error ER_PARSE_ERROR
28
--error ER_BAD_FIELD_ERROR
32
# Test likely error conditions
34
create table t1 select 1 as x, 2 as xx;
41
# Check that the fix does not affect table created with current version
42
create table t1(a varbinary(255));
43
insert into t1 values("aaa ");
44
select length(a) from t1;
45
alter table t1 modify a varchar(255);
46
select length(a) from t1;
51
# Bug#28127 (Some valid identifiers names are not parsed correctly)
55
drop table if exists table_28127_a;
56
drop table if exists table_28127_b;
59
create table table_28127_a(0b02 int);
60
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
61
show create table table_28127_a;
63
create table table_28127_b(0b2 int);
64
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
65
show create table table_28127_b;
67
drop table table_28127_a;
68
drop table table_28127_b;