Skip to content

Commit

Permalink
Use slightly more efficient SQL for the "This Episode" filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigem committed Nov 11, 2011
1 parent 71064a3 commit 1433926
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythversion.h
Expand Up @@ -51,7 +51,7 @@
* MythTV Python Bindings
* mythtv/bindings/python/MythTV/static.py
*/
#define MYTH_DATABASE_VERSION "1284"
#define MYTH_DATABASE_VERSION "1285"


MBASE_PUBLIC const char *GetMythSourceVersion();
Expand Down
12 changes: 12 additions & 0 deletions mythtv/libs/libmythtv/dbcheck.cpp
Expand Up @@ -5911,6 +5911,18 @@ NULL
return false;
}

if (dbver == "1284")
{
const char *updates[] = {
"REPLACE INTO recordfilter (filterid, description, clause, newruledefault) "
" VALUES (6, 'This Episode', '(RECTABLE.programid <> '''' AND program.programid = RECTABLE.programid) OR (RECTABLE.programid = '''' AND program.subtitle = RECTABLE.subtitle AND program.description = RECTABLE.description)', 0);",
NULL
};

if (!performActualUpdate(updates, "1285", dbver))
return false;
}

return true;
}

Expand Down

0 comments on commit 1433926

Please sign in to comment.