From 723da8b9d9ce57b6613fd44464f6c74d1f0c5e7f Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 4 Jun 2013 12:26:16 -0400 Subject: [PATCH] Fix sqlescape breaking table names --- database.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database.js b/database.js index e3f53392..9557f477 100644 --- a/database.js +++ b/database.js @@ -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; }