Skip to content

Commit

Permalink
fixed optional args
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Jul 11, 2012
1 parent f46119e commit 047e63e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/connection.js
Expand Up @@ -429,10 +429,7 @@ var Connection = Class.extend({
// sql, [callback]
// sql, params, [callback]
runSqlAll: over([
[over.string, over.callbackOptional, function (sql, callback) {
return this._runSqlAll(sql, undefined, callback);
}],
[over.string, over.array, over.callbackOptional, function (sql, params, callback) {
[over.string, over.arrayOptional, over.callbackOptional, function (sql, params, callback) {
return this._runSqlAll(sql, params, callback);
}]
]),
Expand Down

0 comments on commit 047e63e

Please sign in to comment.