dollar quote sql

This commit is contained in:
Simon Tokumine 2012-04-20 16:09:31 -04:00
parent 8d131a1424
commit 977f7d0e79

View File

@ -82,10 +82,11 @@ function handleQuery(req, res){
pg = new PSQL(user_id, database, limit, offset); pg = new PSQL(user_id, database, limit, offset);
// get all the tables // get all the tables
pg.query('SELECT CDB_QueryTables(\''+sql+'\')', this); pg.query("SELECT CDB_QueryTables($$" + sql + "$$)", this);
}, },
function queryResult(err, result){ function queryResult(err, result){
if (err) throw err; if (err) throw err;
// store explain result // store explain result
explain_result = result; explain_result = result;