~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/errors.result

  • Committer: Toru Maesaka
  • Date: 2009-05-18 06:07:03 UTC
  • mto: (1054.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1056.
  • Revision ID: dev@torum.net-20090518060703-5d2f2luyqaho10yq
Add memory allocation check and fix SEGV problem caused in statement_cleanup() by using calloc. This is temporary, the query statement list should be migrated to a proper container like std::vector

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
ERROR 42000: Column length too big for column 'a' (max = 16383); use BLOB or TEXT instead
30
30
CREATE TABLE t1 (a INT);
31
31
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
32
 
ERROR 22012: Division by 0
 
32
a
33
33
INSERT INTO t1 VALUES(1);
34
34
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
35
 
ERROR 22012: Division by 0
 
35
a
 
36
1
36
37
INSERT INTO t1 VALUES(2),(3);
37
38
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
38
 
ERROR 22012: Division by 0
 
39
a
 
40
1
 
41
Warnings:
 
42
Error   1365    Division by 0
 
43
Error   1365    Division by 0
39
44
DROP TABLE t1;
40
45
CREATE TABLE t1( a INT );
41
46
SELECT b FROM t1;