We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6683d75 commit 8648279Copy full SHA for 8648279
1 file changed
packages/pg/lib/utils.js
@@ -183,13 +183,7 @@ const escapeLiteral = function (str) {
183
return '\\\\'
184
})
185
.replace(/'/g, "''")
186
-
187
- if (hasBackslash) {
188
- escaped = ` E'${escaped}'`
189
- } else {
190
- escaped = `'${escaped}'`
191
- }
192
- return escaped
+ return hasBackslash ? ` E'${escaped}'` : `'${escaped}'`
193
}
194
195
module.exports = {
0 commit comments