Enforce the usage of cartodb schema

This commit is contained in:
Raúl Marín 2019-12-02 13:43:19 +01:00
parent fb9dce0386
commit fcf2fd1455
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ function unauthorizedError () {
} }
const catalogQueryTpl = ctx => ` const catalogQueryTpl = ctx => `
SELECT analysis_def->>'type' as type, * FROM cdb_analysis_catalog WHERE username = '${ctx._username}' SELECT analysis_def->>'type' as type, * FROM cartodb.cdb_analysis_catalog WHERE username = '${ctx._username}'
`; `;
var tablesQueryTpl = ctx => ` var tablesQueryTpl = ctx => `

View File

@ -10,7 +10,7 @@ module.exports = AnalysisStatusBackend;
AnalysisStatusBackend.prototype.getNodeStatus = function (nodeId, dbParams, callback) { AnalysisStatusBackend.prototype.getNodeStatus = function (nodeId, dbParams, callback) {
var statusQuery = [ var statusQuery = [
'SELECT node_id, status, updated_at, last_error_message as error_message', 'SELECT node_id, status, updated_at, last_error_message as error_message',
'FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\'' 'FROM cartodb.cdb_analysis_catalog where node_id = \'' + nodeId + '\''
].join(' '); ].join(' ');
var pg = new PSQL(dbParams); var pg = new PSQL(dbParams);