summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_test.result
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2004-01-28 19:02:58 +0200
committerunknown <jani@rhols221.adsl.netsonic.fi>2004-01-28 19:02:58 +0200
commit96abffd4a4d6562a2cf3e0b55eb2c478739e3083 (patch)
tree810f9d3e1a3840ae3e385e969f92345c45bb916d /mysql-test/r/func_test.result
parentd01e81012876416b3691a513a13af26d13d2f307 (diff)
downloadmariadb-git-96abffd4a4d6562a2cf3e0b55eb2c478739e3083.tar.gz
Fixed a bug in GREATES() and LEAST() function, that caused a core
dump when result was NULL. mysql-test/r/func_test.result: Added a test for GREATEST() and LEAST() core dump bug. mysql-test/t/func_test.test: Added a test for GREATEST() and LEAST() core dump bug.
Diffstat (limited to 'mysql-test/r/func_test.result')
-rw-r--r--mysql-test/r/func_test.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_test.result b/mysql-test/r/func_test.result
index 4bb2e067f9c..7d0a76424fe 100644
--- a/mysql-test/r/func_test.result
+++ b/mysql-test/r/func_test.result
@@ -165,3 +165,9 @@ SELECT f_acc.rank, a1.rank, a2.rank FROM t1 LEFT JOIN t1 f1 ON (f1.access_id=1
rank rank rank
2 2 NULL
DROP TABLE t1,t2;
+CREATE TABLE t1 (d varchar(6), k int);
+INSERT INTO t1 VALUES (NULL, 2);
+SELECT GREATEST(d,d) FROM t1 WHERE k=2;
+GREATEST(d,d)
+NULL
+DROP TABLE t1;