[mythtv-commits] Ticket #4429: Mythmusic DBError reported when importing a CD

MythTV mythtv at cvs.mythtv.org
Sat Jan 5 11:39:54 UTC 2008


#4429: Mythmusic DBError reported when importing a CD
--------------------------------------+-------------------------------------
 Reporter:  Roo <roo.watt at gmail.com>  |       Owner:  ijr 
     Type:  defect                    |      Status:  new 
 Priority:  minor                     |   Milestone:  0.21
Component:  mythmusic                 |     Version:  head
 Severity:  medium                    |     Mlocked:  0   
--------------------------------------+-------------------------------------
 [15223] makes sure that the compilation flag is updated when metadata is
 updated.

 The numRowsAffected check is causing a DBError to be reported if the
 UPDATE did not affect/change any rows.

 As per: http://doc.trolltech.com/3.3/qsqlquery.html#numRowsAffected
 {{{
 If the query is not active (isActive() returns FALSE), -1 is returned.
 }}}

 So it seems the simple fix is to remove the "|| query.numRowsAffected() <=
 0" test.

 Attached is a patch to do just that.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4429>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list