~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/errors.test

  • Committer: Brian Aker
  • Date: 2010-10-06 07:52:09 UTC
  • mto: (1821.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1822.
  • Revision ID: brian@tangent.org-20101006075209-0fu3u7zg9r8rw3i8
Fix issue with divide by zero not being an error.

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