[mythtv-commits] mythtv commit: r21255 by janne

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Aug 13 22:26:25 UTC 2009


      Author: janne
        Date: 2009-08-13 22:26:25 +0000 (Thu, 13 Aug 2009)
New Revision: 21255
   Changeset: http://cvs.mythtv.org/trac/changeset/21255

Modified:

   trunk/mythtv/libs/libmythtv/dbcheck.cpp

Log:

check for charset conversion errors before DB update 1215. Fixes #5070

the database charset handling was fragile before the change to UTF-8.
We abused latin1 as tranparent byte storage of UTF-8 string. If for example
the default connection charset was set to something else than latin1
charset conversions in the mysql server would have stored data, our charset
updates 1215 and 1216 will destroy data sometimes resulting in duplicate keys.
This patch checks if the conversions succeed in temporary tables before doing
the real update.

based on patch by: Micheal T Dean > mtdean thirdcontact com <





More information about the mythtv-commits mailing list