summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_if.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2011-06-20 00:21:41 +0500
committerAlexey Botchkov <holyfoot@askmonty.org>2011-06-20 00:21:41 +0500
commitb826c888417e258dc0da6b6c0d011960db38f4b9 (patch)
tree4ab265b3c9f0db0fbc7cde2ebdd8073a10278f5f /mysql-test/t/func_if.test
parent9d51588e9560e963fa6087513098c940b70b2e3d (diff)
parent4058115cf74d00fcf0e432b23981c6393d5abbc5 (diff)
downloadmariadb-git-b826c888417e258dc0da6b6c0d011960db38f4b9.tar.gz
gis-related tests fixes.
merging.
Diffstat (limited to 'mysql-test/t/func_if.test')
-rw-r--r--mysql-test/t/func_if.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/func_if.test b/mysql-test/t/func_if.test
index 8142f57c0de..bbe9958685a 100644
--- a/mysql-test/t/func_if.test
+++ b/mysql-test/t/func_if.test
@@ -161,8 +161,9 @@ DROP TABLE t1;
#
CREATE TABLE t1 (c LONGTEXT);
-INSERT INTO t1 VALUES(1), (2), (3), (4), ('12345678901234567890');
+INSERT INTO t1 VALUES(1), (2), (3), (4), ('1234567890123456789');
+SELECT IF(1, CAST(c AS UNSIGNED), 0) FROM t1;
SELECT * FROM (SELECT MAX(IF(1, CAST(c AS UNSIGNED), 0)) FROM t1) AS te;
SELECT * FROM (SELECT MAX(IFNULL(CAST(c AS UNSIGNED), 0)) FROM t1) AS te;