~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/null.result

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1, t2;
2
2
select null,\N,isnull(null),isnull(1/0),isnull(1/0 = null),ifnull(null,1),ifnull(null,"TRUE"),ifnull("TRUE","ERROR"),1/0 is null,1 is not null;
3
 
ERROR 22012: Division by 0
 
3
NULL    NULL    isnull(null)    isnull(1/0)     isnull(1/0 = null)      ifnull(null,1)  ifnull(null,"TRUE")     ifnull("TRUE","ERROR")  1/0 is null     1 is not null
 
4
NULL    NULL    1       1       1       1       TRUE    TRUE    1       1
 
5
Warnings:
 
6
Error   1365    Division by 0
 
7
Error   1365    Division by 0
 
8
Error   1365    Division by 0
4
9
explain extended select null,\N,isnull(null),isnull(1/0),isnull(1/0 = null),ifnull(null,1),ifnull(null,"TRUE"),ifnull("TRUE","ERROR"),1/0 is null,1 is not null;
5
 
ERROR 22012: Division by 0
 
10
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
11
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
 
12
Warnings:
 
13
Error   1365    Division by 0
 
14
Error   1365    Division by 0
 
15
Error   1365    Division by 0
 
16
Note    1003    select NULL AS `NULL`,NULL AS `NULL`,isnull(NULL) AS `isnull(null)`,isnull((1 / 0)) AS `isnull(1/0)`,isnull(((1 / 0) = NULL)) AS `isnull(1/0 = null)`,ifnull(NULL,1) AS `ifnull(null,1)`,ifnull(NULL,'TRUE') AS `ifnull(null,"TRUE")`,ifnull('TRUE','ERROR') AS `ifnull("TRUE","ERROR")`,isnull((1 / 0)) AS `1/0 is null`,(1 is not null) AS `1 is not null`
6
17
select CONCAT(1, NULL),1+NULL,1-NULL;
7
18
CONCAT(1, NULL) 1+NULL  1-NULL
8
19
NULL    NULL    NULL
114
125
UPDATE t1 SET d=NULL;
115
126
ERROR 23000: Column 'd' cannot be null
116
127
truncate table t1;
117
 
LOAD DATA INFILE 'DRIZZLETEST_VARDIR/std_data_ln/null_test.txt' INTO TABLE t1 FIELDS ENCLOSED BY '"';
 
128
LOAD DATA INFILE '../../std_data_ln/null_test.txt' INTO TABLE t1 FIELDS ENCLOSED BY '"';
118
129
ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'a' at row 1
119
130
drop table t1;
120
131
create table t1 (a int not null, b int not null, index idx(a));