Skip to content
Snippets Groups Projects
Unverified Commit 867a2666 authored by ou yuanning's avatar ou yuanning Committed by GitHub
Browse files

remove tag (#4732)


Co-authored-by: default avatarfengttt <fengttt@gmail.com>
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent fdca65e7
No related branches found
No related tags found
No related merge requests found
......@@ -9,15 +9,15 @@ select CASE "c" when "a" then 1 when "b" then 2 ELSE 3 END;
select CASE when 1=0 then "true" else "false" END;
select CASE 1 when 1 then "one" WHEN 2 then "two" ELSE "more" END;
select CASE 2.0 when 1 then "one" WHEN 2.0 then "two" ELSE "more" END;
-- @bvt:issue#3294
select (CASE "two" when "one" then "1" WHEN "two" then "2" END) | 0;
-- @bvt:issue
select (CASE "two" when "one" then 1.00 WHEN "two" then 2.00 END) +0.0;
select case 1/0 when "a" then "true" else "false" END;
select case 1/0 when "a" then "true" END;
-- @bvt:issue#3294
select (case 1/0 when "a" then "true" END) | 0;
-- @bvt:issue
select (case 1/0 when "a" then "true" END) + 0.0;
select case when 1>0 then "TRUE" else "FALSE" END;
select case when 1<0 then "TRUE" else "FALSE" END;
......
......@@ -2,9 +2,9 @@ select CAST(1-2 AS UNSIGNED);
select CAST(CAST(1-2 AS UNSIGNED) AS SIGNED INTEGER);
select CAST('10 ' as unsigned integer);
select CAST('10x' as unsigned integer);
-- @bvt:issue#3294
select cast(-5 as unsigned) | 1, cast(-5 as unsigned) & -1;
-- @bvt:issue
select cast(-5 as unsigned) -1, cast(-5 as unsigned) + 1;
select cast(5 as unsigned) -6.0;
select cast(NULL as signed);
......
......@@ -27,8 +27,7 @@ division by zero
select case 1/0 when "a" then "true" END;
division by zero
select (case 1/0 when "a" then "true" END) | 0;
(case 1/0 when "a" then "true" END) | 0
null
division by zero
select (case 1/0 when "a" then "true" END) + 0.0;
division by zero
select case when 1>0 then "TRUE" else "FALSE" END;
......
......@@ -8,8 +8,7 @@ cast(10 as integer unsigned)
select CAST('10x' as unsigned integer);
Can't cast '10x' from VARCHAR type to BIGINT UNSIGNED type.
select cast(-5 as unsigned) | 1, cast(-5 as unsigned) & -1;
cast(-5 as unsigned) | 1 cast(-5 as unsigned) & -1
18446744073709551611 18446744073709551611
Can't cast '-5' from BIGINT type to BIGINT UNSIGNED type. Reason: overflow
select cast(-5 as unsigned) -1, cast(-5 as unsigned) + 1;
Can't cast '-5' from BIGINT type to BIGINT UNSIGNED type. Reason: overflow
select cast(5 as unsigned) -6.0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment