BUG FIX: column names quoted properly (from r100687)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105620 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:22:35 +00:00
parent f661501019
commit 96ebc35cee

View File

@ -490,7 +490,7 @@ class Hierarchy extends DataObjectDecorator {
*/
public function numHistoricalChildren() {
$query = Versioned::get_including_deleted_query(ClassInfo::baseDataClass($this->owner->class),
"ParentID = " . (int)$this->owner->ID);
"\"ParentID\" = " . (int)$this->owner->ID);
return $query->unlimitedRowCount();
}