diff options
author | Gleb Shchepa <gshchepa@mysql.com> | 2008-12-12 02:04:06 +0400 |
---|---|---|
committer | Gleb Shchepa <gshchepa@mysql.com> | 2008-12-12 02:04:06 +0400 |
commit | a4467c97981714631deef5685d6d2f790e877695 (patch) | |
tree | 98650421d126f96f69f50a07f1db1ce6b667b1e1 /mysql-test/r/func_if.result | |
parent | a633e0b98d0dbd5aab04901856dfd717b916a508 (diff) | |
parent | ffe23f0eb736609915d3c201c3f2556819698dc1 (diff) | |
download | mariadb-git-a4467c97981714631deef5685d6d2f790e877695.tar.gz |
manual merge 5.0-bugteam -> 5.1-bugteam (bug 40761)
Diffstat (limited to 'mysql-test/r/func_if.result')
-rw-r--r-- | mysql-test/r/func_if.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/func_if.result b/mysql-test/r/func_if.result index 62d34c5ce8f..955a784f04c 100644 --- a/mysql-test/r/func_if.result +++ b/mysql-test/r/func_if.result @@ -176,4 +176,13 @@ IF((ROUND(t1.a,2)=1), 2, IF((ROUND(t1.a,2)=1), 2, IF((R DROP TABLE t1; +CREATE TABLE t1 (c LONGTEXT); +INSERT INTO t1 VALUES(1), (2), (3), (4), ('12345678901234567890'); +SELECT * FROM (SELECT MAX(IF(1, CAST(c AS UNSIGNED), 0)) FROM t1) AS te; +MAX(IF(1, CAST(c AS UNSIGNED), 0)) +12345678901234567890 +SELECT * FROM (SELECT MAX(IFNULL(CAST(c AS UNSIGNED), 0)) FROM t1) AS te; +MAX(IFNULL(CAST(c AS UNSIGNED), 0)) +12345678901234567890 +DROP TABLE t1; End of 5.0 tests |