xdenser / node-firebird-libfbclient

Firebird SQL binding
MIT License
82 stars 34 forks source link

Expecting Callback Function argument when loading 100.000 records with test #38

Closed mariuz closed 10 years ago

mariuz commented 10 years ago

CREATE TABLE TEST (id integer, name varchar(50)); insert 100.000 records and then load in the browser the following test

/tmp/node-firebird-tests

/tmp/node-firebird-tests/node_modules/firebird/firebird.js:31 superm.apply(this,arguments);
^ Error: Expecting Callback Function argument at Connection.safe as commit at Connection. (/tmp/node-firebird-tests/node_modules/firebird/firebird.js:26:16) at Connection.g (events.js:180:16) at Connection.emit (events.js:92:17)

xdenser commented 10 years ago

you are calling commit w/o callback use commitSync or provide empty function.

mariuz commented 10 years ago

Yes now it works seems to be stable with commitSync

ab -n 100000 -c 10 http://localhost:1337/

https://github.com/mariuz/node-firebird-tests