~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/odbc.result

code clean move Item_func_abs, Item_func_int_exp, Item_func_ln, Item_func_log to functions directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
select {fn length("hello")}, { date "1997-10-20" };
3
 
{fn length("hello")}    1997-10-20
4
 
5       1997-10-20
5
 
create table t1 (a int not null auto_increment,b int not null,primary key (a,b));
6
 
insert into t1 SET A=NULL,B=1;
7
 
insert into t1 SET a=null,b=2;
8
 
select * from t1 where a is null and b=2;
9
 
a       b
10
 
2       2
11
 
select * from t1 where a is null;
12
 
a       b
13
 
explain select * from t1 where b is null;
14
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
15
 
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE
16
 
drop table t1;
17
 
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY);
18
 
INSERT INTO t1 VALUES (NULL);
19
 
SELECT a, last_insert_id() FROM t1 WHERE a IS NULL;
20
 
a       last_insert_id()
21
 
1       1
22
 
SELECT a, last_insert_id() FROM t1 WHERE a IS NULL;
23
 
a       last_insert_id()
24
 
SELECT a, last_insert_id() FROM t1;
25
 
a       last_insert_id()
26
 
1       1
27
 
DROP TABLE t1;