dollar quote sql
This commit is contained in:
parent
8d131a1424
commit
977f7d0e79
@ -82,10 +82,11 @@ function handleQuery(req, res){
|
||||
pg = new PSQL(user_id, database, limit, offset);
|
||||
|
||||
// get all the tables
|
||||
pg.query('SELECT CDB_QueryTables(\''+sql+'\')', this);
|
||||
pg.query("SELECT CDB_QueryTables($$" + sql + "$$)", this);
|
||||
},
|
||||
function queryResult(err, result){
|
||||
if (err) throw err;
|
||||
|
||||
// store explain result
|
||||
explain_result = result;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user