Bug #2885 like datetime
Submitted: 19 Feb 2004 1:46 Modified: 16 Mar 2004 1:50
Reporter: Javier Tacón Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:4.1.1 & 5.0.0 OS:Any (All)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[19 Feb 2004 1:46] Javier Tacón
Description:
mysql> create table test (a datetime);
Query OK, 0 rows affected (0.04 sec)

mysql> insert into test values ('2004-02-19 12:12:12');
Query OK, 1 row affected (0.00 sec)

mysql> select * from test where a like '2004-02-19 12:12:12';
Empty set (0.00 sec)

How to repeat:
create table test (a datetime);
insert into test values ('2004-02-19 12:12:12');
select * from test where a like '2004-02-19 12:12:12';
[19 Feb 2004 9:00] Dean Ellis
Verified against 4.1.2.  Thank you.
[11 Mar 2004 6:25] Ramil Kalimullin
Please take a look at 
ChangeSet
  1.1777 04/03/11 18:21:57 ram@gw.mysql.r18.ru +3 -0
  a fix (bug #2885: like datetime)
[16 Mar 2004 1:50] Ramil Kalimullin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html