~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/case.test

  • Committer: patrick crews
  • Date: 2010-09-29 15:15:19 UTC
  • mfrom: (1099.4.188 drizzle)
  • Revision ID: gleebix@gmail.com-20100929151519-6mrmzd1ciw2p9nws
Tags: 2010.09.1802
Update translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
select CASE 2.0 when 1 then "one" WHEN 2.0 then "two" ELSE "more" END;
19
19
select (CASE "two" when "one" then "1" WHEN "two" then "2" END);
20
20
select (CASE "two" when "one" then 1.00 WHEN "two" then 2.00 END) +0.0;
21
 
--error ER_DIVISION_BY_ZERO
22
21
select case 1/0 when "a" then "true" else "false" END;
23
 
--error ER_DIVISION_BY_ZERO
24
22
select case 1/0 when "a" then "true" END;
25
 
--error ER_DIVISION_BY_ZERO
26
23
select (case 1/0 when "a" then "true" END);
27
 
--error ER_DIVISION_BY_ZERO
28
24
select (case 1/0 when "a" then "true" END) + 0.0;
29
25
select case when 1>0 then "TRUE" else "FALSE" END;
30
26
select case when 1<0 then "TRUE" else "FALSE" END;
161
157
#
162
158
# #30782: Truncated BIGINT columns 
163
159
#
164
 
create table t1 (a int, b bigint unsigned);
 
160
create table t1 (a int, b bigint);
165
161
create table t2 (c int);
166
162
insert into t1 (a, b) values (1,4572794622775114594), (2,18196094287899841997),
167
163
  (3,11120436154190595086);