~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_math.test

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
 
121
121
DROP TABLE t1;  
122
122
 
 
123
#
 
124
# Bug #14009: use of abs() on null value causes problems with filesort
 
125
#
 
126
# InnoDB is required to reproduce the fault, but it is okay if we default to
 
127
# MyISAM when testing.
 
128
--disable_warnings
 
129
create table t1 (a varchar(90), ts datetime not null, index (a)) engine=innodb;
 
130
--enable_warnings
 
131
insert into t1 values ('http://www.foo.com/', now());
 
132
select a from t1 where a='http://www.foo.com/' order by abs(timediff(ts, 0));
 
133
drop table t1;
 
134
 
123
135
# End of 4.1 tests
124
136
 
125
137
#
139
151
#
140
152
# Bug#16678 FORMAT gives wrong result if client run with default-character-set=utf8
141
153
#
142
 
create TEMPORARY table t1
 
154
create table t1
143
155
(f1 varchar(32) not null,
144
156
 f2 int not null,
145
157
 f3 int not null default '0')
146
158
engine=myisam;
147
159
insert into t1 values ('zombie',0,0),('gold',1,10000),('silver',2,10000);
148
160
 
149
 
create TEMPORARY table t2
 
161
create table t2
150
162
(f1 int not null,
151
163
 f2 int not null,
152
164
 f3 int not null)