diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-05-20 14:57:29 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-05-20 14:57:29 +0200 |
commit | 7f6f53a8df10c76f93848c8d06bc5af71051c525 (patch) | |
tree | 9a539823cdf05f53574fdf91941b3a242025acba /mysql-test/r/func_if.result | |
parent | 0e7e724d6b36b2f5b8a0604171adb750d7c82c9c (diff) | |
parent | 280fcf08085e43b5359ec79c0e34166e51b3ebd8 (diff) | |
download | mariadb-git-7f6f53a8df10c76f93848c8d06bc5af71051c525.tar.gz |
5.2 merge
Diffstat (limited to 'mysql-test/r/func_if.result')
-rw-r--r-- | mysql-test/r/func_if.result | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result index 5941b4d784a..6acf1efe75d 100644 --- a/mysql-test/r/func_if.result +++ b/mysql-test/r/func_if.result @@ -193,3 +193,20 @@ MAX(IFNULL(CAST(c AS UNSIGNED), 0)) 1234567890123456789 DROP TABLE t1; End of 5.0 tests +# +# LP bug#998321 Simple query with IF expression causes an +# assertion abort (see also mysql Bug#12620084) +# +SELECT if(0, (SELECT min('hello')), NULL); +if(0, (SELECT min('hello')), NULL) +NULL +SELECT if(1, (SELECT min('hello')), NULL); +if(1, (SELECT min('hello')), NULL) +hello +SELECT if(0, NULL, (SELECT min('hello'))); +if(0, NULL, (SELECT min('hello'))) +hello +SELECT if(1, NULL, (SELECT min('hello'))); +if(1, NULL, (SELECT min('hello'))) +NULL +End of 5.2 tests |