Skip to content

Commit f08d07d

Browse files
committed
Only set options.values = values when values is defined. Otherwise, when an options object is passed as the first object and no callback is passed, options.values is unset.
1 parent 6eea20d commit f08d07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Connection.createQuery = function(sql, values, cb) {
3939
options = sql;
4040
if (typeof values === 'function') {
4141
cb = values;
42-
} else {
42+
} else if (typeof values !== 'undefined') {
4343
options.values = values;
4444
}
4545
} else if (typeof values === 'function') {

0 commit comments

Comments
 (0)