~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists t1;
2
insert into t1 values(1);
2140.1.3 by Brian Aker
Merge in error message fix for just one type of error for unknown table.
3
ERROR 42S02: Unknown table 'test.t1'
1 by brian
clean slate
4
delete from t1;
2140.1.3 by Brian Aker
Merge in error message fix for just one type of error for unknown table.
5
ERROR 42S02: Unknown table 'test.t1'
1 by brian
clean slate
6
update t1 set a=1;
2140.1.3 by Brian Aker
Merge in error message fix for just one type of error for unknown table.
7
ERROR 42S02: Unknown table 'test.t1'
1 by brian
clean slate
8
create table t1 (a int);
9
select count(test.t1.b) from t1;
10
ERROR 42S22: Unknown column 'test.t1.b' in 'field list'
11
select count(not_existing_database.t1) from t1;
12
ERROR 42S22: Unknown column 'not_existing_database.t1' in 'field list'
13
select count(not_existing_database.t1.a) from t1;
14
ERROR 42S22: Unknown column 'not_existing_database.t1.a' in 'field list'
15
select count(not_existing_database.t1.a) from not_existing_database.t1;
16
Got one of the listed errors
17
select 1 from t1 order by 2;
18
ERROR 42S22: Unknown column '2' in 'order clause'
19
select 1 from t1 group by 2;
20
ERROR 42S22: Unknown column '2' in 'group statement'
21
select 1 from t1 order by t1.b;
22
ERROR 42S22: Unknown column 't1.b' in 'order clause'
23
select count(*),b from t1;
24
ERROR 42S22: Unknown column 'b' in 'field list'
25
drop table t1;
26
create table t1 (a varchar(66000));
696 by Brian Aker
Fixed errors test.
27
ERROR 42000: Column length too big for column 'a' (max = 16383); use BLOB or TEXT instead
1 by brian
clean slate
28
CREATE TABLE t1 (a INT);
29
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
1812.4.2 by Brian Aker
Fix issue with divide by zero not being an error.
30
ERROR 22012: Division by 0
1 by brian
clean slate
31
INSERT INTO t1 VALUES(1);
32
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
1812.4.2 by Brian Aker
Fix issue with divide by zero not being an error.
33
ERROR 22012: Division by 0
1 by brian
clean slate
34
INSERT INTO t1 VALUES(2),(3);
35
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
1812.4.2 by Brian Aker
Fix issue with divide by zero not being an error.
36
ERROR 22012: Division by 0
1 by brian
clean slate
37
DROP TABLE t1;
38
CREATE TABLE t1( a INT );
39
SELECT b FROM t1;
40
ERROR 42S22: Unknown column 'b' in 'field list'
41
SHOW ERRORS;
42
Level	Code	Message
43
Error	1054	Unknown column 'b' in 'field list'
44
CREATE TABLE t2 SELECT b FROM t1;
45
ERROR 42S22: Unknown column 'b' in 'field list'
46
SHOW ERRORS;
47
Level	Code	Message
48
Error	1054	Unknown column 'b' in 'field list'
49
INSERT INTO t1 SELECT b FROM t1;
50
ERROR 42S22: Unknown column 'b' in 'field list'
51
DROP TABLE t1;