Adding ansi quote to identifier

This commit is contained in:
3Dgoo 2018-07-06 15:17:38 +09:30 committed by Robbie Averill
parent 317729604d
commit 3d9031aaac
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class BlogArchiveWidget extends Widget
->addLeftJoin('SiteTree' . $suffix, '"SiteTree' . $suffix . '"."ID" = "BlogPost' . $suffix . '"."ID"')
->addWhere([
'"PublishDate" <= ?' => DBDatetime::now()->Format(DBDatetime::ISO_DATETIME),
'SiteTree' . $suffix . '.ParentID' => $this->BlogID,
'"SiteTree' . $suffix . '"."ParentID"' => $this->BlogID,
]);
$posts = $query->execute();