diff --git a/lib/Driver/Sql.php b/lib/Driver/Sql.php index d0df0b29..72a1de2c 100644 --- a/lib/Driver/Sql.php +++ b/lib/Driver/Sql.php @@ -505,7 +505,7 @@ function _save($object) $values[] = $object_id; - $query = 'UPDATE ' . $this->_params['table'] . ' SET ' . implode(', ', $fields) . ' WHERE ' . $where; + $query = 'UPDATE ' . $this->_params['table'] . ' SET ' . implode(' = ?, ', $fields) . ' = ? WHERE ' . $where; try { $this->_db->update($query, $values);