mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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
This commit is contained in:
@@ -117,3 +117,15 @@ select rand(i) from t1;
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
# Bug #13820 (No warning on log(negative)
|
||||
#
|
||||
set sql_mode='traditional';
|
||||
select ln(-1);
|
||||
select log10(-1);
|
||||
select log2(-1);
|
||||
select log(2,-1);
|
||||
select log(-2,1);
|
||||
set sql_mode='';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user