fixed bug in query

This commit is contained in:
louis 2014-05-10 10:56:47 +02:00
parent caa68fa4ca
commit f1587ee56e

View File

@ -166,9 +166,9 @@ 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();
// select image // select image