mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge polly.local:/tmp/20924/bug20294/my50-bug20294
into polly.local:/tmp/20924/bug20294/my51-bug20294
This commit is contained in:
@ -133,8 +133,6 @@ select min(a), min(case when 1=1 then a else NULL end),
|
||||
from t1 where b=3 group by b;
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
|
||||
#
|
||||
# Tests for bug #9939: conversion of the arguments for COALESCE and IFNULL
|
||||
@ -154,3 +152,12 @@ SELECT IFNULL(t2.EMPNUM,t1.EMPNUM) AS CEMPNUM,
|
||||
FROM t1 LEFT JOIN t2 ON t1.EMPNUM=t2.EMPNUM;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user