Skip to content

Commit

Permalink
Merge branch 'hotfix/log-writer-db'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 25, 2012
2 parents 1ac7a6a + 5a3bedd commit 11de4bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/Zend/Log/Writer/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ protected function doWrite(array $event)
*/
protected function prepareInsert(Adapter $db, $tableName, array $fields)
{
$keys = array_keys($fields);
$sql = 'INSERT INTO ' . $db->platform->quoteIdentifier($tableName) . ' (' .
implode(",",array_map(array($db->platform, 'quoteIdentifier'), $fields)) . ') VALUES (' .
implode(",",array_map(array($db->driver, 'formatParameterName'), $fields)) . ')';
implode(",",array_map(array($db->platform, 'quoteIdentifier'), $keys)) . ') VALUES (' .
implode(",",array_map(array($db->driver, 'formatParameterName'), $keys)) . ')';

return $sql;
}
Expand Down

0 comments on commit 11de4bb

Please sign in to comment.