Skip to content
Permalink
Browse files

Only quote if the update clause is a string

  • Loading branch information...
HavokInspiration committed Jun 17, 2015
1 parent e675998 commit 931baf9e7eb1c781eec5f9e57fa853cdbe641eb3
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Database/IdentifierQuoter.php
@@ -192,7 +192,10 @@ protected function _quoteInsert($query)
protected function _quoteUpdate($query)
{
$table = $query->clause('update')[0];
$query->update($this->_driver->quoteIdentifier($table));
if (is_string($table)) {
$query->update($this->_driver->quoteIdentifier($table));
}
}
/**

0 comments on commit 931baf9

Please sign in to comment.
You can’t perform that action at this time.