Bug #7458 Microseconds are gobbled from the result of STR_TO_DATE() function
Submitted: 21 Dec 2004 17:52 Modified: 23 Dec 2004 9:03
Reporter: Dmitri Lenev
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version:4.1.8 OS:
Assigned to: Dmitri Lenev Target Version:

[21 Dec 2004 17:52] Dmitri Lenev
Description:
Microseconds are gobbled from string result of STR_TO_DATE function, if there is some
other specifier in format string after %f.

How to repeat:
select concat('',str_to_date('8:11:2.123456 03-01-02','%H:%i:%S.%f %y-%m-%d'))
[21 Dec 2004 18:12] Dmitri Lenev
ChangeSet
  1.2175 04/11/30 18:50:25 dlenev@brandersnatch.localdomain +3 -0
  Cleanup of STR_TO_DATE() implementation and fix for small bug which
  caused microseconds to be gobbled from string result of this function,
  if there was another specifier after %f in format string.
[23 Dec 2004 9:03] Dmitri Lenev
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

Additional info:

Fix will appear in 4.1.9