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

MythTV noreply at mythtv.org
Wed Mar 2 20:00:18 UTC 2011


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

Comment (by Michael T. Dean):

 Don't use QDateTime::toString() for prepared queries.

 When using bindValue() to specify datetime values, do not use
 toString().  Instead, pass the QDateTime to bindValue() so that it can
 pass the value using the MySQL-C-API MYSQL_TIME type--so that database
 datetime string literal format isn't an issue.  Refs #8585.

 Thanks, again, to Rob Smith for finding another incorrect pattern to
 search for.
  Changeset: cd073b6e9b323958f785cab47884e605e4033885

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


More information about the mythtv-commits mailing list