diff options
author | monty@hundin.mysql.fi <> | 2002-08-12 04:04:43 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-08-12 04:04:43 +0300 |
commit | 3ef9d44edcd3db115d03a6ed7e896c662ad2182e (patch) | |
tree | 4ba65b7347df0448111dd1a3ab055bc2c8a1c6dc /mysql-test/t | |
parent | c99c1fd38439a7c529dc24c03c5ff586ba694c57 (diff) | |
parent | d825808a726960fa4fde7d4569c2d95014ca440f (diff) | |
download | mariadb-git-3ef9d44edcd3db115d03a6ed7e896c662ad2182e.tar.gz |
merge with 3.23.52
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/bigint.test | 6 | ||||
-rw-r--r-- | mysql-test/t/func_if.test | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/bigint.test b/mysql-test/t/bigint.test index 535bf0e4a60..15b35ac7c87 100644 --- a/mysql-test/t/bigint.test +++ b/mysql-test/t/bigint.test @@ -5,6 +5,12 @@ select 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296; select 9223372036854775807,-009223372036854775808; select +9999999999999999999,-9999999999999999999; +# +# In 3.23 we have to disable the test of column to bigint as +# this fails on AIX powerpc (the resolution for double is not good enough) +# This will work on 4.0 as we then have internal handling of bigint variables. +# + drop table if exists t1; create table t1 (a bigint unsigned not null, primary key(a)); insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE); diff --git a/mysql-test/t/func_if.test b/mysql-test/t/func_if.test index c5cc73ecd1f..85553d1a2fd 100644 --- a/mysql-test/t/func_if.test +++ b/mysql-test/t/func_if.test @@ -28,3 +28,7 @@ create table t1 (num double(12,2)); insert into t1 values (144.54); select sum(if(num is null,0.00,num)) from t1; drop table t1; +create table t1 (x int, y int); +insert into t1 values (0,6),(10,16),(20,26),(30,10),(40,46),(50,56); +select min(if(y -x > 5,y,NULL)), max(if(y - x > 5,y,NULL)) from t1; +drop table t1; |