Commit 5df7611c authored by kaa@polly.local's avatar kaa@polly.local
Browse files

Post-review fixes for bug #20924

parent 268c7a35
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -183,3 +183,4 @@ CASE 1 WHEN 1 THEN 18446744073709551615 ELSE 1 END
SELECT COALESCE(18446744073709551615);
COALESCE(18446744073709551615)
18446744073709551615
End of 4.1 tests
+1 −0
Original line number Diff line number Diff line
@@ -105,3 +105,4 @@ IF(1 != 0, 18446744073709551615, 1)
SELECT IFNULL(NULL, 18446744073709551615);
IFNULL(NULL, 18446744073709551615)
18446744073709551615
End of 4.1 tests
+1 −0
Original line number Diff line number Diff line
@@ -189,3 +189,4 @@ GREATEST(1, 18446744073709551615)
SELECT LEAST(1, 18446744073709551615);
LEAST(1, 18446744073709551615)
1
End of 4.1 tests
+1 −0
Original line number Diff line number Diff line
@@ -207,3 +207,4 @@ set @a=18446744073709551615;
select @a;
@a
18446744073709551615
End of 4.1 tests
+4 −2
Original line number Diff line number Diff line
@@ -131,9 +131,11 @@ from t1 where b=3 group by b;
drop table t1;

#
# Bug #20924: UNSIGNED values in CASE and COALESCE are treated as SIGNED
# 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);

# End of 4.1 tests
--echo End of 4.1 tests
Loading