[mythtv-commits] Ticket #6802: MythMusic database creation contains invalid instructions making updates fail

MythTV mythtv at cvs.mythtv.org
Tue Aug 4 11:13:02 UTC 2009


#6802: MythMusic database creation contains invalid instructions making updates
fail
----------------------------------------------------+-----------------------
 Reporter:  Jonathan Martens <jonathan at snetram.nl>  |       Owner:  stuartm
     Type:  defect                                  |      Status:  new    
 Priority:  major                                   |   Milestone:  0.22   
Component:  Plugin - MythMusic                      |     Version:  head   
 Severity:  medium                                  |     Mlocked:  0      
----------------------------------------------------+-----------------------
 The dbcheck.cpp file for the MythMusic plugin contains invalid statements
 making database upgrades fail at version 1005 as in the 1006 (and some
 more along the line) contain create staments with fields of type TEXT with
 a default value which is not supported as described in
 http://dev.mysql.com/doc/refman/5.1/en/blob.html:

 "In most respects, you can regard a BLOB column as a VARBINARY column that
 can be as large as you like. Similarly, you can regard a TEXT column as a
 VARCHAR column. BLOB and TEXT differ from VARBINARY and VARCHAR in the
 following ways:

     * For indexes on BLOB and TEXT columns, you must specify an index
 prefix length. For CHAR and VARCHAR, a prefix length is optional. See
 Section 7.4.2, “Column Indexes”.
     * BLOB and TEXT columns cannot have DEFAULT values."

 Please find attached a patch to fix this.

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


More information about the mythtv-commits mailing list