diff --git a/NEWS.md b/NEWS.md index 3900a495..a9235b5a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ 1.8.4 -- 2014-03-DD ------------------- +Enhancements: + + - Really skip CDB_TableMetadata lookup for sql affected by no tables (#169) + 1.8.3 -- 2014-02-27 ------------------- diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index ebd23b1b..4d94cfa6 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -193,7 +193,7 @@ module.exports = function(){ } var qtables = rows[0].cdb_querytables; var tableNames = qtables.split(/^\{(.*)\}$/)[1]; - tableNames = tableNames.split(','); + tableNames = tableNames ? tableNames.split(',') : []; callback(null, tableNames); }); };