不要怂,就是干,撸起袖子干!

Commit ae0cd7d0 by Sascha Depold

added parens

1 parent 38d1b8bf
Showing with 2 additions and 1 deletions
...@@ -36,8 +36,9 @@ module.exports = (function() { ...@@ -36,8 +36,9 @@ module.exports = (function() {
}) })
}; };
if (getDatabaseMethod.call(self) === 'all' && /select\s.*?\sfrom\s+([^ ;]+)/i.test(self.sql)) { if ((getDatabaseMethod.call(self) === 'all') && /select\s.*?\sfrom\s+([^ ;]+)/i.test(self.sql)) {
var tableName = RegExp.$1; var tableName = RegExp.$1;
if (tableName !== 'sqlite_master') { if (tableName !== 'sqlite_master') {
// get the column types // get the column types
self.database.all("PRAGMA table_info(" + tableName + ")", function(err, results) { self.database.all("PRAGMA table_info(" + tableName + ")", function(err, results) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!