mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
664aaacb21
commit
ab735c70d0
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user