[mythtv-commits] Ticket #8585: Qt:ISODate/mysql icompatibility

MythTV noreply at mythtv.org
Mon Feb 21 02:06:51 UTC 2011


#8585: Qt:ISODate/mysql icompatibility
----------------------------------+----------------------------
 Reporter:  eltorio@…             |          Owner:  mdean
     Type:  defect                |         Status:  infoneeded
 Priority:  minor                 |      Milestone:  unknown
Component:  MythTV - General      |        Version:  Trunk Head
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+----------------------------

Comment (by mdean):

 Rob, I committed the fixes for the datetime literals you found that were
 using an invalid format.  I also attached a patch which you can use to
 prevent invalid format datetime values from appearing in the database
 logging.  I don't plan to commit the patch, since it only changes the
 format of data within a very-low-level debug string, and isn't worth the
 resources required for the extra checks.  However, if you would like to
 use it on your MySQL 5.5, it should allow you to grep the -v database logs
 for invalid-format datetimes without seeing the false-positives that occur
 due to the toString() used by the logging code.  It should be simpler than
 changing each bindValue() using QDateTime to pass a string to the
 database.

 Leaving the ticket open for now, and plan to backport fixes after a week
 or so, but I think you found all the problem datetime strings.  Thanks.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/8585#comment:8>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list