mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Cset exclude: kaa@polly.local|ChangeSet|20060912122540|09861
Cset exclude: kaa@polly.local|ChangeSet|20060908100829|09983 sql/item_cmpfunc.cc: Exclude sql/item_cmpfunc.h: Exclude sql/item_func.cc: Exclude sql/item_func.h: Exclude sql/log_event.cc: Exclude sql/sql_class.h: Exclude mysql-test/r/case.result: Exclude mysql-test/r/func_if.result: Exclude mysql-test/r/func_test.result: Exclude mysql-test/r/user_var.result: Exclude mysql-test/t/case.test: Exclude mysql-test/t/func_if.test: Exclude mysql-test/t/func_test.test: Exclude mysql-test/t/user_var.test: Exclude
This commit is contained in:
@ -177,10 +177,3 @@ from t1 where b=3 group by b;
|
||||
min(a) min(case when 1=1 then a else NULL end) min(case when 1!=1 then NULL else a end)
|
||||
2 2 2
|
||||
drop table t1;
|
||||
SELECT CASE 1 WHEN 1 THEN 18446744073709551615 ELSE 1 END;
|
||||
CASE 1 WHEN 1 THEN 18446744073709551615 ELSE 1 END
|
||||
18446744073709551615
|
||||
SELECT COALESCE(18446744073709551615);
|
||||
COALESCE(18446744073709551615)
|
||||
18446744073709551615
|
||||
End of 4.1 tests
|
||||
|
@ -99,10 +99,3 @@ a NULLIF(a,'')
|
||||
NULL NULL
|
||||
NULL
|
||||
DROP TABLE t1;
|
||||
SELECT IF(1 != 0, 18446744073709551615, 1);
|
||||
IF(1 != 0, 18446744073709551615, 1)
|
||||
18446744073709551615
|
||||
SELECT IFNULL(NULL, 18446744073709551615);
|
||||
IFNULL(NULL, 18446744073709551615)
|
||||
18446744073709551615
|
||||
End of 4.1 tests
|
||||
|
@ -183,10 +183,3 @@ select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
|
||||
select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
|
||||
5 mod 3 5 mod -3 -5 mod 3 -5 mod -3
|
||||
2 2 -2 -2
|
||||
SELECT GREATEST(1, 18446744073709551615);
|
||||
GREATEST(1, 18446744073709551615)
|
||||
18446744073709551615
|
||||
SELECT LEAST(1, 18446744073709551615);
|
||||
LEAST(1, 18446744073709551615)
|
||||
1
|
||||
End of 4.1 tests
|
||||
|
@ -203,8 +203,3 @@ select @@global.version;
|
||||
select @@session.VERSION;
|
||||
@@session.VERSION
|
||||
#
|
||||
set @a=18446744073709551615;
|
||||
select @a;
|
||||
@a
|
||||
18446744073709551615
|
||||
End of 4.1 tests
|
||||
|
@ -130,12 +130,4 @@ select min(a), min(case when 1=1 then a else NULL end),
|
||||
from t1 where b=3 group by b;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various
|
||||
# functions
|
||||
# - UNSIGNED values in CASE and COALESCE are treated as SIGNED
|
||||
#
|
||||
SELECT CASE 1 WHEN 1 THEN 18446744073709551615 ELSE 1 END;
|
||||
SELECT COALESCE(18446744073709551615);
|
||||
|
||||
--echo End of 4.1 tests
|
||||
# End of 4.1 tests
|
||||
|
@ -73,18 +73,4 @@ SELECT a, NULLIF(a,'') FROM t1 WHERE NULLIF(a,'') IS NULL;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various
|
||||
# functions
|
||||
# - UNSIGNED values in IF() are treated as SIGNED
|
||||
#
|
||||
SELECT IF(1 != 0, 18446744073709551615, 1);
|
||||
|
||||
#
|
||||
# Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various
|
||||
# functions
|
||||
# - UNSIGNED values in IFNULL() are treated as SIGNED
|
||||
#
|
||||
SELECT IFNULL(NULL, 18446744073709551615);
|
||||
|
||||
--echo End of 4.1 tests
|
||||
# End of 4.1 tests
|
||||
|
@ -108,12 +108,4 @@ select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
|
||||
|
||||
select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
|
||||
|
||||
#
|
||||
# Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various
|
||||
# functions
|
||||
# - UNSIGNED values in GREATEST() and LEAST() are treated as SIGNED
|
||||
#
|
||||
SELECT GREATEST(1, 18446744073709551615);
|
||||
SELECT LEAST(1, 18446744073709551615);
|
||||
|
||||
--echo End of 4.1 tests
|
||||
# End of 4.1 tests
|
||||
|
@ -141,12 +141,4 @@ select @@global.version;
|
||||
--replace_column 1 #
|
||||
select @@session.VERSION;
|
||||
|
||||
#
|
||||
# Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various
|
||||
# functions
|
||||
# - SET on a user variable saves UNSIGNED as SIGNED
|
||||
#
|
||||
set @a=18446744073709551615;
|
||||
select @a;
|
||||
|
||||
--echo End of 4.1 tests
|
||||
# End of 4.1 tests
|
||||
|
Reference in New Issue
Block a user