MINOR FIX: column names escaped properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@87556 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-09-29 22:00:00 +00:00
parent 262129a8b5
commit 1eb7d14033

View File

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