fixed 'overload' error for NativeQuery constructor

This commit is contained in:
brianc 2011-03-07 18:56:50 -06:00
parent cabca209c7
commit 847d84f82e
2 changed files with 10 additions and 10 deletions

View File

@ -131,12 +131,12 @@ var NativeQuery = function(text, values, callback) {
this.name = text.name;
} else {
this.text = text;
this.callback = callback;
this.values = values;
}
if(typeof values == 'function') {
this.values = null;
this.callback = values;
this.callback = callback;
if(typeof values == 'function') {
this.values = null;
this.callback = values;
}
}
if(this.callback) {
this.rows = [];

View File

@ -1,7 +1,7 @@
var helper = require(__dirname + '/test-helper');
test("noData message handling", function() {
return false;
var client = helper.client();
var q = client.query({