diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-01-14 15:03:37 +0100 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-01-14 15:03:37 +0100 |
commit | 175e89260e8dfb00e7bc8c293253724407e293e1 (patch) | |
tree | fcfe8b1adf7da95ad34cbab733e7c40ed9133ac0 /mysql-test/r/func_math.result | |
parent | ad6c8d2342c791a9810fb0f98cc7ae17ef397458 (diff) | |
download | mariadb-git-175e89260e8dfb00e7bc8c293253724407e293e1.tar.gz |
Bug #59498 div function broken in mysql-trunk
mysql-test/r/func_math.result:
New test case.
mysql-test/t/func_math.test:
New test case.
sql/item_func.cc:
Check for null before converting value to my_decimal.
Diffstat (limited to 'mysql-test/r/func_math.result')
-rw-r--r-- | mysql-test/r/func_math.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result index db4f6ddcf20..3149a2a3344 100644 --- a/mysql-test/r/func_math.result +++ b/mysql-test/r/func_math.result @@ -650,3 +650,9 @@ SELECT ((@a:=@b:=1.0) div (@b:=@a:=get_format(datetime, 'usa'))); NULL Warnings: Warning 1366 Incorrect decimal value: '' for column '' at row -1 +# +# Bug #59498 div function broken in mysql-trunk +# +SELECT 1 div null; +1 div null +NULL |