2013-03-13 22:33:52 +01:00
|
|
|
#
|
|
|
|
# MDEV-4265 5.5 is slower than 5.3 because of many str_to_datetime calls
|
|
|
|
#
|
|
|
|
--source include/have_debug.inc
|
|
|
|
|
|
|
|
create table t1 (a date);
|
|
|
|
insert t1 values ('2000-01-02'), ('2001-02-03'), ('2002-03-04');
|
2019-12-23 21:48:59 +01:00
|
|
|
|
|
|
|
SET STATEMENT debug_dbug='d,str_to_datetime_warn' for
|
|
|
|
select * from t1 where a > date_add('2000-01-01', interval 5 day);
|
2016-04-17 18:51:54 +02:00
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
#
|
|
|
|
# MDEV-9707 MAX(timestamp(6) column) in correlated sub-query returns non-existent row data in original table
|
|
|
|
#
|
|
|
|
create table t1 (id int not null, ut timestamp(6) not null);
|
|
|
|
insert into t1 values(1, '2001-01-01 00:00:00.2');
|
|
|
|
insert into t1 values(1, '2001-01-01 00:00:00.1');
|
|
|
|
select * from t1;
|
|
|
|
select (select max(m2.ut) from t1 m2 where m1.id <> 0) from t1 m1;
|
2013-03-13 22:33:52 +01:00
|
|
|
drop table t1;
|
|
|
|
|