Skip to content

Commit

Permalink
mytharchivehelper: fix disappearing seektables when importing a recor…
Browse files Browse the repository at this point in the history
…ding

There was a typo in the query to remove the old seektables which rather than
the query failing it somehow was removing all the seektables!

Fixes #11712.
  • Loading branch information
Paul Harrison committed Jul 31, 2013
1 parent 1255ccf commit d655bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mytharchive/mytharchivehelper/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ int NativeArchive::importRecording(const QDomElement &itemNode,
{
// delete any records for this recordings
query.prepare("DELETE FROM recordedmarkup "
"WHERE chanid = CHANID AND starttime = STARTTIME;");
"WHERE chanid = :CHANID AND starttime = :STARTTIME;");
query.bindValue(":CHANID", chanID);
query.bindValue(":STARTTIME", startTime);
query.exec();
Expand Down Expand Up @@ -1119,7 +1119,7 @@ int NativeArchive::importRecording(const QDomElement &itemNode,
{
// delete any records for this recordings
query.prepare("DELETE FROM recordedseek "
"WHERE chanid = CHANID AND starttime = STARTTIME;");
"WHERE chanid = :CHANID AND starttime = :STARTTIME;");
query.bindValue(":CHANID", chanID);
query.bindValue(":STARTTIME", startTime);
query.exec();
Expand Down

0 comments on commit d655bc4

Please sign in to comment.