Really skip CDB_TableMetadata lookup for sql affected by no tables
Closes #169
This commit is contained in:
parent
eec9933fb8
commit
f24e4f8a0a
4
NEWS.md
4
NEWS.md
@ -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
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user