~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_test.test

add test for bug600088: multibyte comments not shown correctly in SHOW CREATE TABLE 

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
# Bug#23411: The "%" (MOD) operator is not documented; MOD-ing zero returns strange result
70
70
# Manual: "Division by zero produces a NULL result"
71
71
#
72
 
--error ER_DIVISION_BY_ZERO
73
72
select (12%0) <=> null      as '1';
74
 
--error ER_DIVISION_BY_ZERO
75
73
select (12%0) is null       as '1';
76
 
--error ER_DIVISION_BY_ZERO
77
74
select 12%0                 as 'NULL';
78
75
select 12%2                 as '0';
79
76
select 12%NULL              as 'NULL';
83
80
select 0 % null             as 'NULL';
84
81
select null % null          as 'NULL';
85
82
 
86
 
--error ER_DIVISION_BY_ZERO
87
83
select (12 mod 0) <=> null  as '1';
88
 
--error ER_DIVISION_BY_ZERO
89
84
select (12 mod 0) is null   as '1';
90
 
--error ER_DIVISION_BY_ZERO
91
85
select 12 mod 0             as 'NULL';
92
86
select 12 mod 2             as '0';
93
87
select 12 mod null          as 'NULL';
96
90
select 0 mod null           as 'NULL';
97
91
select null mod null        as 'NULL';
98
92
 
99
 
--error ER_DIVISION_BY_ZERO
100
93
select mod(12.0, 0)         as 'NULL';
101
 
--error ER_DIVISION_BY_ZERO
102
94
select mod(12, 0.0)         as 'NULL';
103
95
select mod(12, NULL)        as 'NULL';
104
96
select mod(12.0, NULL)      as 'NULL';