Really skip CDB_TableMetadata lookup for sql affected by no tables

Closes #169
This commit is contained in:
Sandro Santilli 2014-02-27 15:34:09 +01:00
parent eec9933fb8
commit f24e4f8a0a
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
1.8.4 -- 2014-03-DD 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 1.8.3 -- 2014-02-27
------------------- -------------------

View File

@ -193,7 +193,7 @@ module.exports = function(){
} }
var qtables = rows[0].cdb_querytables; var qtables = rows[0].cdb_querytables;
var tableNames = qtables.split(/^\{(.*)\}$/)[1]; var tableNames = qtables.split(/^\{(.*)\}$/)[1];
tableNames = tableNames.split(','); tableNames = tableNames ? tableNames.split(',') : [];
callback(null, tableNames); callback(null, tableNames);
}); });
}; };