~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/errors.test

  • Committer: lbieber
  • Date: 2010-10-08 01:11:05 UTC
  • mfrom: (1821.1.4 build)
  • Revision ID: lbieber@orisndriz08-20101008011105-1tbwbvz9me9fy7ua
Merge Monty - Fixed the last of the ICC warnings. Turned on warnings=errors
Merge Brian - fixu bug #655558: SELECT 102/(1-1) should error on divide by zero          
Merge Brian - fix bug #654219: information_schema.key_column_usage does not contain information about FKs

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
# Bug #27513: mysql 5.0.x + NULL pointer DoS
45
45
#
46
46
CREATE TABLE t1 (a INT);
 
47
--error ER_DIVISION_BY_ZERO
47
48
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
48
49
INSERT INTO t1 VALUES(1);
 
50
--error ER_DIVISION_BY_ZERO
49
51
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
50
52
INSERT INTO t1 VALUES(2),(3);
 
53
--error ER_DIVISION_BY_ZERO
51
54
SELECT a FROM t1 WHERE a IN(1, (SELECT IF(1=0,1,2/0)));
52
55
DROP TABLE t1;
53
56