[mythtv-users] Schema update bug

Chris Pinkham cpinkham at bc2va.org
Wed Oct 21 03:21:34 UTC 2009


* On Tue Oct 20, 2009 at 10:02:00PM -0400, Ken Bass wrote:
> I'm trying to upgrade a 0.20 to 0.22RC1 for testing but the schema 
> upgrade fails.
> 
> My patch was to change performActualUpdate() in dbCheck.cpp
>    while (thequery != NULL)
> TO
>    while ((thequery != NULL) && strlen(thequery)>0)

Thanks.  I put a slightly different fix in trunk and the 0.22
branch.  Your fix wouldn't handle it correctly if the empty string
wasn't the last string in the list, it would leave some DB updates
undone.  My change just skips over empty strings and continues on.

--
Chris


More information about the mythtv-users mailing list