~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/strict.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:
41
41
--error ER_WARN_DATA_TRUNCATED
42
42
INSERT INTO t1 (col1) VALUES ('1a');
43
43
INSERT IGNORE INTO t1 (col1) VALUES ('2a');
 
44
--error ER_DIVISION_BY_ZERO
44
45
INSERT IGNORE INTO t1 values (1/0);
45
46
INSERT IGNORE INTO t1 values (-2147483649);
46
47
INSERT IGNORE INTO t1 values (2147643648);
97
98
--error ER_WARN_DATA_TRUNCATED
98
99
INSERT INTO t1 (col1) VALUES ('1a');
99
100
INSERT IGNORE INTO t1 (col1) VALUES ('2a');
 
101
--error ER_DIVISION_BY_ZERO
100
102
INSERT IGNORE INTO t1 values (1/0);
101
103
INSERT IGNORE INTO t1 VALUES (-9223372036854775809);
102
104
INSERT IGNORE INTO t1 VALUES (9223372036854775808);
195
197
--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
196
198
INSERT INTO t1 (col1) VALUES ('1a');
197
199
INSERT IGNORE INTO t1 (col1) VALUES ('2a');
 
200
--error ER_DIVISION_BY_ZERO
198
201
INSERT IGNORE INTO t1 values (1/0);
199
202
INSERT IGNORE INTO t1 VALUES (1000);
200
203
INSERT IGNORE INTO t1 VALUES (-1000);