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

Andreas Oeldenberger geflist at gmx.net
Fri Feb 4 00:56:49 UTC 2005


Don't know if its the best way to fix this but "it works for me"(tm)

-------------- 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	4 Feb 2005 00:38:08 -0000
@@ -1091,7 +1091,7 @@ void ProgramInfo::SetBookmark(long long 
         query.bindValue(":BOOKMARK", posstr);
     }
     else
-        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