You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsql=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?
The text was updated successfully, but these errors were encountered:
Hi @kmvan sorry you are having trouble. These methods of escaping values only works when the NO_BACKSLASH_ESCAPES SQL mode is disabled (which is the default state for MySQL servers).
Looks like
single\'double\"
shoud besingle''double""
Need I create a user function to replace the quote?
The text was updated successfully, but these errors were encountered: