~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/pbxt/varbinary.result

Merge in security refactor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
select 0x31+1,concat(0x31)+1,-0xf;
3
 
0x31+1  concat(0x31)+1  -0xf
4
 
50      2       -15
5
 
select x'31',X'ffff'+0;
6
 
x'31'   X'ffff'+0
7
 
1       65535
8
 
create table t1 (ID int not null auto_increment,UNIQ bigint not null,primary key (ID),unique (UNIQ) );
9
 
insert into t1 set UNIQ=0x38afba1d73e6a18a;
10
 
insert into t1 set UNIQ=123;
11
 
explain extended select * from t1 where UNIQ=0x38afba1d73e6a18a;
12
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
13
 
1       SIMPLE  t1      const   UNIQ    UNIQ    8       const   1       100.00  
14
 
Warnings:
15
 
Note    1003    select '1' AS `ID`,'4084688022709641610' AS `UNIQ` from `test`.`t1` where 1
16
 
drop table t1;
17
 
select x'hello';
18
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'x'hello'' at line 1
19
 
select 0xfg;
20
 
ERROR 42S22: Unknown column '0xfg' in 'field list'
21
 
create table t1 select 1 as x, 2 as xx;
22
 
select x,xx from t1;
23
 
x       xx
24
 
1       2
25
 
drop table t1;
26
 
create table t1(a varbinary(255));
27
 
insert into t1 values("aaa   ");
28
 
select length(a) from t1;
29
 
length(a)
30
 
6
31
 
alter table t1 modify a varchar(255);
32
 
select length(a) from t1;
33
 
length(a)
34
 
6
35
 
drop table t1;
36
 
drop table if exists table_28127_a;
37
 
drop table if exists table_28127_b;
38
 
create table table_28127_a(0b02 int);
39
 
show create table table_28127_a;
40
 
Table   Create Table
41
 
table_28127_a   CREATE TABLE `table_28127_a` (
42
 
  `0b02` INT DEFAULT NULL
43
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
44
 
create table table_28127_b(0b2 int);
45
 
show create table table_28127_b;
46
 
Table   Create Table
47
 
table_28127_b   CREATE TABLE `table_28127_b` (
48
 
  `0b2` INT DEFAULT NULL
49
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
50
 
drop table table_28127_a;
51
 
drop table table_28127_b;