[mythtv-commits] Ticket #5070: Database schema upgrade error from 1216 to 1217.
MythTV
mythtv at cvs.mythtv.org
Thu Aug 13 22:26:26 UTC 2009
#5070: Database schema upgrade error from 1216 to 1217.
--------------------------------+-------------------------------------------
Reporter: nlabadie at gmail.com | Owner: janne
Type: defect | Status: closed
Priority: major | Milestone: 0.22
Component: mythtv | Version: head
Severity: medium | Resolution: fixed
Mlocked: 0 |
--------------------------------+-------------------------------------------
Changes (by janne):
* status: assigned => closed
* resolution: => fixed
Comment:
(In [21255]) 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 <
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5070#comment:21>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list