Skip to content

Commit

Permalink
fix: add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Apr 13, 2017
1 parent da4131c commit d91312c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -45,7 +45,7 @@ types.setTypeParser(20, (value) => {

const debug = createDebug('mightyql');

export const query: InternalQueryType = async (connection, sql, values) => {
export const query: InternalQueryType = async (connection, sql, values = []) => {
debug('query input', sql, values);

try {
Expand Down

0 comments on commit d91312c

Please sign in to comment.