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
/** * Wrap name with double-quotes to work with keyword properly * see * http://www.postgresql.org/docs/9.5/static/sql-syntax-lexical.html * @param {String} name the name to escape * @param {bool} remove the flag to remove double-quotes * @returns {String} the escaped name * @private */function_escapeName(name,remove){if(/".*"/.test(name)){returnremove ? name.substring(1,name.length-1) : name;}returnremove ? name : `"${name}"`;}
You should instead use the proper query formatting provided by pg-promise.
about this code:
You should instead use the proper query formatting provided by
pg-promise
.In this particular case - method as.name.
See also SQL Names.
The text was updated successfully, but these errors were encountered: