From ea75123ea9f5172e8f19e77993eadc9ec1c23686 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 4 Jul 2014 12:57:20 +0200 Subject: [PATCH] Removes the call to set the search path as it should get the correct public user from redis --- app/controllers/app.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/controllers/app.js b/app/controllers/app.js index 0c4dd466..952feac9 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -346,6 +346,8 @@ function handleQuery(req, res) { Meta.getUserDBPass(cdbuser, this); }, function queryExplain(err, data){ + var self = this; + if (err) throw err; if ( req.profiler ) req.profiler.done('getUserDBPass'); checkAborted('queryExplain'); @@ -361,17 +363,6 @@ function handleQuery(req, res) { } pg = new PSQL(dbopts); - if (user_id === null) { - var s = "SET search_path = " + cdbuser + ",cartodb, public"; - pg.query(s, this); - } else { - return data; - } - }, - - function queryTables(err) { - if (err) throw err; - var self = this; // get all the tables from Cache or SQL tableCacheItem = tableCache.get(sql_md5); if (tableCacheItem) {