[mythtv-commits] Ticket #6478: Add update timestamp to program table for incremental program data retrieval

MythTV mythtv at cvs.mythtv.org
Fri May 1 21:27:35 UTC 2009


#6478: Add update timestamp to program table for incremental program data
retrieval
---------------------------------------+------------------------------------
 Reporter:  chasedouglas at gmail.com     |        Owner:  danielk 
     Type:  patch                      |       Status:  assigned
 Priority:  minor                      |    Milestone:  unknown 
Component:  MythTV - Mythfilldatabase  |      Version:  head    
 Severity:  medium                     |   Resolution:          
  Mlocked:  0                          |  
---------------------------------------+------------------------------------

Comment(by chasedouglas at gmail.com):

 In the big delete query in datadirect.cpp I refer to dd_genre twice, once
 in the main query and once in a subquery. This was not an issue during my
 testing because I had made the temporary dd tables non-temporary (I just
 deleted the TEMPORARY flag from the CreateATempTable query). However, now
 that I've restored the TEMPORARY flag and deleted the non-temporary
 tables, the delete query won't prepare. According to the MySQL docs
 (http://dev.mysql.com/doc/refman/5.1/en/temporary-table-problems.html)
 this is not allowed, and the QSqlError text after it tries to bind the
 query states "Can't reopen table: 'dd_genre'."

 I don't have a fix in mind yet, and I may just have to scrap that
 subquery. This would increase the number of unnecessary updates to include
 programs without matching genre table entries. If I remember correctly
 this may represent about 2% of the programs I've retrieved through
 schedules direct.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6478#comment:4>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list