summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_math.result
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-10-17 12:32:22 +0500
committerunknown <hf@deer.(none)>2005-10-17 12:32:22 +0500
commit1f6bc6550f9eb1f59a8112cab2c0da912db56ba3 (patch)
tree3146756d7f5afbed1f973b0b83b467b49f7461fe /mysql-test/r/func_math.result
parentccb796a9ce2171925bed0a2d4a131684c6bdcf0b (diff)
downloadmariadb-git-1f6bc6550f9eb1f59a8112cab2c0da912db56ba3.tar.gz
Fix for bug #13820 (No warning on log(NEGATIVE))
mysql-test/r/func_math.result: result fixed mysql-test/t/func_math.test: test case added sql/item_func.cc: tests for (value<=0.0) added to LOG* functions
Diffstat (limited to 'mysql-test/r/func_math.result')
-rw-r--r--mysql-test/r/func_math.result27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result
index 5b6c29f87fb..b7ba2273956 100644
--- a/mysql-test/r/func_math.result
+++ b/mysql-test/r/func_math.result
@@ -170,3 +170,30 @@ insert into t1 values (1);
select rand(i) from t1;
ERROR HY000: Incorrect arguments to RAND
drop table t1;
+set sql_mode='traditional';
+select ln(-1);
+ln(-1)
+NULL
+Warnings:
+Error 1365 Division by 0
+select log10(-1);
+log10(-1)
+NULL
+Warnings:
+Error 1365 Division by 0
+select log2(-1);
+log2(-1)
+NULL
+Warnings:
+Error 1365 Division by 0
+select log(2,-1);
+log(2,-1)
+NULL
+Warnings:
+Error 1365 Division by 0
+select log(-2,1);
+log(-2,1)
+NULL
+Warnings:
+Error 1365 Division by 0
+set sql_mode='';