Fix sqlescape breaking table names

This commit is contained in:
calzoneman 2013-06-04 12:26:16 -04:00
parent 70f2065a36
commit 723da8b9d9
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ function createQuery(template, args) {
template = first + template.substring(idx).replace("?", arg);
last = idx + arg.length;
}
template = template.replace(/`'/g, "`");
template = template.replace(/'`/g, "`");
return template;
}