[mythtv] [Bug][Patch] SetBookmark putting String "NULL" in db

Andreas Oeldenberger geflist at gmx.net
Tue Feb 8 04:25:31 UTC 2005

no comments?

Just in case I'll describe the symptoms this "Bug" has here:

After clearing a Bookmark from a recording the Icon on the View Recordings
Screen is still showing (Titivillus Theme). This was caused by SetBookmarks
setting the value of Bookmark to "NULL" and not NULL on clearing the

I can't really believe I'm the only one who is affected by this? Or is it
just a matter of QT/mysql-Version?


Patch reattached.

-------------- next part --------------
Index: programinfo.cpp
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/programinfo.cpp,v
retrieving revision 1.191
diff -u -b -B -w -p -r1.191 programinfo.cpp
--- programinfo.cpp	1 Feb 2005 16:45:10 -0000	1.191
+++ programinfo.cpp	8 Feb 2005 03:44:50 -0000
@@ -1091,7 +1091,7 @@ void ProgramInfo::SetBookmark(long long 
         query.bindValue(":BOOKMARK", posstr);
-        query.bindValue(":BOOKMARK", "NULL");
+        query.bindValue(":BOOKMARK", QString::null);
     if (!query.exec() || !query.isActive())
         MythContext::DBError("Save position update",

More information about the mythtv-dev mailing list