mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed column names that were not quoted that broke PostgreSQL
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@110944 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
92c04a6a1c
commit
ae89969321
@ -337,7 +337,7 @@ class Versioned extends DataObjectDecorator {
|
||||
|
||||
if(is_array($effectedIDs)) {
|
||||
foreach($effectedIDs as $key => $value) {
|
||||
DB::query("DELETE FROM \"{$table}_versions\" WHERE \"{$table}_versions\".ID = '$value'");
|
||||
DB::query("DELETE FROM \"{$table}_versions\" WHERE \"{$table}_versions\".\"ID\" = '$value'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class VersionedTest extends SapphireTest {
|
||||
DB::query("DELETE FROM \"VersionedTest_DataObject_versions\" WHERE \"RecordID\" = $obj->ID");
|
||||
|
||||
// insert a record with no primary key (ID)
|
||||
DB::query("INSERT INTO \"VersionedTest_DataObject_versions\" (RecordID) VALUES ($obj->ID)");
|
||||
DB::query("INSERT INTO \"VersionedTest_DataObject_versions\" (\"RecordID\") VALUES ($obj->ID)");
|
||||
|
||||
// run the script which should clean that up
|
||||
$obj->augmentDatabase();
|
||||
|
Loading…
x
Reference in New Issue
Block a user