Closed
Description
const sql = sqlstring.format('SELECT * FROM `terms` WHERE `name` = ?', [
`single'double"`,
])
console.log(sql)
// output: SELECT * FROM `terms` WHERE `name` = 'single\'double\"'
// near "double": syntax error
Looks like single\'double\"
shoud be single''double""
Need I create a user function to replace the quote?