summaryrefslogtreecommitdiff
path: root/mysql-test/r/select.result
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-01-22 14:58:36 +0400
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-01-22 14:58:36 +0400
commit938e16ee4c956ab7ea6cb310f527d1d4df623f91 (patch)
tree4ac0494cd5cb6a76440183175add886e06b24034 /mysql-test/r/select.result
parentf7d5d23c3fc9847cc61faba437d90c70434b9f15 (diff)
parent39fb7b2423c01b168ca4947307426edb945abfe2 (diff)
downloadmariadb-git-938e16ee4c956ab7ea6cb310f527d1d4df623f91.tar.gz
Merge mysql.com:/home/ram/work/b22026/b22026.5.0
into mysql.com:/home/ram/work/b22026/b22026.5.1 mysql-test/r/select.result: Auto merged mysql-test/t/select.test: Auto merged sql/item_cmpfunc.cc: Auto merged
Diffstat (limited to 'mysql-test/r/select.result')
-rw-r--r--mysql-test/r/select.result30
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/r/select.result b/mysql-test/r/select.result
index cf84f197c8e..ff7baa6ac12 100644
--- a/mysql-test/r/select.result
+++ b/mysql-test/r/select.result
@@ -3634,3 +3634,33 @@ INSERT into t1 values (1), (2), (3);
SELECT * FROM t1 LIMIT 2, -1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1
DROP TABLE t1;
+create table t1 (a bigint unsigned);
+insert into t1 values
+(if(1, 9223372036854775808, 1)),
+(case when 1 then 9223372036854775808 else 1 end),
+(coalesce(9223372036854775808, 1));
+select * from t1;
+a
+9223372036854775808
+9223372036854775808
+9223372036854775808
+drop table t1;
+create table t1 select
+if(1, 9223372036854775808, 1) i,
+case when 1 then 9223372036854775808 else 1 end c,
+coalesce(9223372036854775808, 1) co;
+show create table t1;
+Table Create Table
+t1 CREATE TABLE `t1` (
+ `i` decimal(19,0) NOT NULL default '0',
+ `c` decimal(19,0) NOT NULL default '0',
+ `co` decimal(19,0) NOT NULL default '0'
+) ENGINE=MyISAM DEFAULT CHARSET=latin1
+drop table t1;
+select
+if(1, cast(1111111111111111111 as unsigned), 1) i,
+case when 1 then cast(1111111111111111111 as unsigned) else 1 end c,
+coalesce(cast(1111111111111111111 as unsigned), 1) co;
+i c co
+1111111111111111111 1111111111111111111 1111111111111111111
+End of 5.0 tests