Commit 409251a0 by Orlando Vazquez

Fix a bug in insertMany

parent 090d71eb
......@@ -175,6 +175,11 @@ Database.prototype.insertMany = function (table, columns, rows, callback) {
var placeholdersFragment = [];
var i = columns.length;
if (!rows.length) {
callback();
return;
}
while (i--) {
placeholdersFragment.push('?');
}
......
......@@ -36,7 +36,7 @@ class Database : public EventEmitter {
~Database() {
assert(db_ == NULL);
printf("Destroying statement\n");
printf("Destroying database\n");
}
static Handle<Value> New(const Arguments& args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment