sequelize/sequelize — pull request #2720 by jpmonette (2014-12-11 21:36:15+00:00)
Title: Fixing "error: syntax error at or near ")"" when using upsert with postgres dialect

When trying to upsert values containing the character `)` using `postgres`, the RegEx is not modifying the string properly, throwing this error message: `error: syntax error at or near ")"`.

Here's an example:

Initial value:
`VALUES ( \'Current Generator(s)\',\'CurrentGenerators__c\',NULL,NULL,\'Lead\',\'2014-12-10 22:31:24.076 +00:00\',\'2014-12-10 22:31:24.076 +00:00\');`

Expected result:
`SELECT \'Current Generator(s)\',\'CurrentGenerators__c\',NULL,NULL,\'Lead\',\'2014-12-10 22:31:24.076 +00:00\',\'2014-12-10 22:31:24.076 +00:00\';`

Current result:
`SELECT \'Current Generator(s\',\'CurrentGenerators__c\',NULL,NULL,\'Lead\',\'2014-12-10 22:31:24.076 +00:00\',\'2014-12-10 22:31:24.076 +00:00\');`

This commit is removing the `replace()` method called. After reading the blog post referred, there's no explanation of why this need to be replaced.

Reference: https://github.com/sequelize/sequelize/pull/2518#discussion_r21706569