diff options
author | kaa@kaamos.(none) <> | 2008-02-20 00:33:43 +0300 |
---|---|---|
committer | kaa@kaamos.(none) <> | 2008-02-20 00:33:43 +0300 |
commit | 8d222210c77ba9152e3ba35d937d9b08a8266295 (patch) | |
tree | 5543a0d99f0ea26b6a31aabda1379272bf9395dd /mysql-test/t/strict.test | |
parent | 947529acf3f802c23311d3c4bda74713e21a161e (diff) | |
download | mariadb-git-8d222210c77ba9152e3ba35d937d9b08a8266295.tar.gz |
Fix for bug #31236: Inconsistent division by zero behavior for
floating point numbers
Some math functions did not check if the result is a valid number
(i.e. neither of +-inf or nan).
Fixed by validating the result where necessary and returning NULL in
case of invalid result.
Diffstat (limited to 'mysql-test/t/strict.test')
-rw-r--r-- | mysql-test/t/strict.test | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index 2b71bf1093c..486f7ce7897 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -822,7 +822,6 @@ INSERT INTO t1 (col2) VALUES (-1.1E-3); INSERT INTO t1 (col1) VALUES ('+1.8E+309'); --error 1264 INSERT INTO t1 (col2) VALUES ('-1.2E-3'); ---error 1264 UPDATE t1 SET col1 =col1 * 5000 WHERE col1 > 0; --error 1365 UPDATE t1 SET col2 =col2 / 0 WHERE col2 > 0; |