mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed case of SQL commands in Database class
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@75155 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b165bde578
commit
bc14dd3b80
@ -487,7 +487,7 @@ abstract class Database extends Object {
|
||||
// Test to see if this update query shouldn't, in fact, be an insert
|
||||
if($this->query("SELECT \"ID\" FROM \"$table\" WHERE $writeInfo[where]")->value()) {
|
||||
$fieldList = implode(", ", $fieldList);
|
||||
$sql = "update \"$table\" SET $fieldList where $writeInfo[where]";
|
||||
$sql = "UPDATE \"$table\" SET $fieldList where $writeInfo[where]";
|
||||
$this->query($sql);
|
||||
break;
|
||||
}
|
||||
@ -502,7 +502,7 @@ abstract class Database extends Object {
|
||||
|
||||
$columnList = implode(", ", $columnList);
|
||||
$valueList = implode(", ", $valueList);
|
||||
$sql = "insert into \"$table\" ($columnList) VALUES ($valueList)";
|
||||
$sql = "INSERT INTO \"$table\" ($columnList) VALUES ($valueList)";
|
||||
$this->query($sql);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user