mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Column names escaped properly
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@113300 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fedaaa9c53
commit
715f864d3d
@ -74,8 +74,8 @@ abstract class CMSSiteTreeFilter extends Object {
|
|||||||
|
|
||||||
if(!empty($parents)) {
|
if(!empty($parents)) {
|
||||||
$q = new SQLQuery();
|
$q = new SQLQuery();
|
||||||
$q->select(array('ID','ParentID'))
|
$q->select(array('"ID"','"ParentID"'))
|
||||||
->from('SiteTree')
|
->from('"SiteTree"')
|
||||||
->where('"ID" in ('.implode(',',array_keys($parents)).')');
|
->where('"ID" in ('.implode(',',array_keys($parents)).')');
|
||||||
|
|
||||||
foreach($q->execute() as $row) {
|
foreach($q->execute() as $row) {
|
||||||
@ -145,8 +145,8 @@ class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
|
|||||||
$ids = array();
|
$ids = array();
|
||||||
$q = new SQLQuery();
|
$q = new SQLQuery();
|
||||||
$q->select(array('"SiteTree"."ID"','"SiteTree"."ParentID"'))
|
$q->select(array('"SiteTree"."ID"','"SiteTree"."ParentID"'))
|
||||||
->from('SiteTree')
|
->from('"SiteTree"')
|
||||||
->leftJoin("SiteTree_Live", '"SiteTree_Live"."ID" = "SiteTree"."ID"')
|
->leftJoin('SiteTree_Live', '"SiteTree_Live"."ID" = "SiteTree"."ID"')
|
||||||
->where('"SiteTree"."Version" > "SiteTree_Live"."Version"');
|
->where('"SiteTree"."Version" > "SiteTree_Live"."Version"');
|
||||||
|
|
||||||
foreach($q->execute() as $row) {
|
foreach($q->execute() as $row) {
|
||||||
@ -176,8 +176,8 @@ class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter {
|
|||||||
function pagesIncluded() {
|
function pagesIncluded() {
|
||||||
$ids = array();
|
$ids = array();
|
||||||
$q = new SQLQuery();
|
$q = new SQLQuery();
|
||||||
$q->select(array('ID','ParentID'))
|
$q->select(array('"ID"','"ParentID"'))
|
||||||
->from('SiteTree');
|
->from('"SiteTree"');
|
||||||
$where = array();
|
$where = array();
|
||||||
|
|
||||||
$SQL_params = Convert::raw2sql($this->params);
|
$SQL_params = Convert::raw2sql($this->params);
|
||||||
|
Loading…
Reference in New Issue
Block a user