mirror of
https://projects.vdr-developer.org/git/vdr-plugin-scraper2vdr.git
synced 2023-10-19 17:58:31 +02:00
fixed bug in query
This commit is contained in:
parent
caa68fa4ca
commit
f1587ee56e
2
update.c
2
update.c
@ -166,7 +166,7 @@ int cUpdate::initDb() {
|
|||||||
selectReadScrapedEvents->build(" or (%s is not null and %s > 0)) ",
|
selectReadScrapedEvents->build(" or (%s is not null and %s > 0)) ",
|
||||||
tEvents->getField(cTableEvents::fiScrMovieId)->name,
|
tEvents->getField(cTableEvents::fiScrMovieId)->name,
|
||||||
tEvents->getField(cTableEvents::fiScrMovieId)->name);
|
tEvents->getField(cTableEvents::fiScrMovieId)->name);
|
||||||
selectReadScrapedEvents->bind(cTableEvents::fiScrSp, cDBS::bndIn | cDBS::bndSet, " and ");
|
selectReadScrapedEvents->bindCmp(0, cTableEvents::fiScrSp, 0, ">", " and ");
|
||||||
selectReadScrapedEvents->build(" order by %s", tEvents->getField(cTableEvents::fiInsSp)->name);
|
selectReadScrapedEvents->build(" order by %s", tEvents->getField(cTableEvents::fiInsSp)->name);
|
||||||
|
|
||||||
status += selectReadScrapedEvents->prepare();
|
status += selectReadScrapedEvents->prepare();
|
||||||
|
Loading…
Reference in New Issue
Block a user