BUG FIX: ID column in delete function now quoted properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86170 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-09-13 22:28:19 +00:00
parent 664aaacb21
commit ab735c70d0

View File

@ -1116,7 +1116,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
$sql = new SQLQuery();
$sql->delete = true;
$sql->from[$ancestor] = "\"$ancestor\"";
$sql->where[] = "ID = $this->ID";
$sql->where[] = "\"ID\" = $this->ID";
$this->extend('augmentSQL', $sql);
$sql->execute();
}