124
# Bug #14009: use of abs() on null value causes problems with filesort
126
# InnoDB is required to reproduce the fault, but it is okay if we default to
127
# MyISAM when testing.
129
create table t1 (a varchar(90), ts datetime not null, index (a)) engine=innodb;
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));
135
123
# End of 4.1 tests