From 5680cc97e663212ece4bc950771c11ba9c12ffc4 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 11 Oct 2009 10:31:19 +0000 Subject: [PATCH] MINOR: Properly quoted column name in SiteTree->validURLSegment() for postgresql support From: Sam Minnee git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88528 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index f79cf925b..b7abcc49d 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -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; }