Skip to content

Commit

Permalink
Fix object updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 12, 2011
1 parent ed7122b commit 960b3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Driver/Sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 960b3a2

Please sign in to comment.