We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b90f4c commit c99d261Copy full SHA for c99d261
MysqliDb.php
@@ -358,7 +358,7 @@ public function update($tableName, $tableData)
358
if ($this->isSubQuery)
359
return;
360
361
- $this->_query = "UPDATE " . self::$_prefix . $tableName ." SET ";
+ $this->_query = "UPDATE " . self::$_prefix . $tableName;
362
363
$stmt = $this->_buildQuery (null, $tableData);
364
$status = $stmt->execute();
@@ -723,7 +723,8 @@ protected function _buildTableData ($tableData) {
723
if ($isInsert !== false) {
724
$this->_query .= '(`' . implode(array_keys($tableData), '`, `') . '`)';
725
$this->_query .= ' VALUES(';
726
- }
+ } else
727
+ $this->_query .= " SET ";
728
729
foreach ($tableData as $column => $value) {
730
if ($isUpdate !== false)
0 commit comments