summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_if.result
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-06-07 12:38:35 +0200
committerunknown <serg@serg.mylan>2004-06-07 12:38:35 +0200
commit7dc2426be0b6a3db11249827f32aa45214fff1ec (patch)
tree5097b350aadfa7b9ac7db9eba46616b817ebe2ad /mysql-test/r/func_if.result
parent256bada7e27da7f9475ea29951010d878f8c896f (diff)
downloadmariadb-git-7dc2426be0b6a3db11249827f32aa45214fff1ec.tar.gz
BUG#3987 - if(int, aggregate(int))
Diffstat (limited to 'mysql-test/r/func_if.result')
-rw-r--r--mysql-test/r/func_if.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result
index 470004d2646..aee54ede324 100644
--- a/mysql-test/r/func_if.result
+++ b/mysql-test/r/func_if.result
@@ -58,3 +58,9 @@ select min(if(y -x > 5,y,NULL)), max(if(y - x > 5,y,NULL)) from t1;
min(if(y -x > 5,y,NULL)) max(if(y - x > 5,y,NULL))
6 56
drop table t1;
+create table t1 (a int);
+insert t1 values (1),(2);
+select if(1>2,a,avg(a)) from t1;
+if(1>2,a,avg(a))
+1.5000
+drop table t1;