Skip to content

Commit

Permalink
fix: except * from quotation
Browse files Browse the repository at this point in the history
PR-URL: #109
  • Loading branch information
tshemsedinov committed Apr 4, 2021
1 parent 988cd2c commit 70afb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Database {
}

async select(table, fields = ['*'], conditions = null) {
const keys = '"' + fields.join('", "') + '"';
const keys = fields[0] === '*' ? '*' : '"' + fields.join('", "') + '"';
const sql = `SELECT ${keys} FROM "${table}"`;
let whereClause = '';
let args = [];
Expand Down

0 comments on commit 70afb56

Please sign in to comment.