MINOR: Properly quoted column name in SiteTree->validURLSegment() for postgresql support

From: Sam Minnee <sam@silverstripe.com>

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88528 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-11 10:31:19 +00:00
parent d6345b4c79
commit 5680cc97e6

View File

@ -1368,7 +1368,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
}
return DB::query (
"SELECT COUNT(ID) FROM \"SiteTree\" WHERE \"URLSegment\" = '$this->URLSegment' $IDFilter $parentFilter"
"SELECT COUNT(\"ID\") FROM \"SiteTree\" WHERE \"URLSegment\" = '$this->URLSegment' $IDFilter $parentFilter"
)->value() < 1;
}