Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code splitting #321

Merged
merged 4 commits into from
Feb 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix pooling test
valentin committed Dec 1, 2023
commit f688024eecaf52a0d78e64e33c8e28633e68fb7d
2 changes: 1 addition & 1 deletion lib/wire/connection.js
Original file line number Diff line number Diff line change
@@ -1825,7 +1825,7 @@ Connection.prototype.svcquery = function (spbquery, resultbuffersize, timeout,ca
msg.pos = 0;
blr.pos = 0;
blr.addByte(Const.isc_spb_current_version);
//blr.addByteInt32(isc_info_svc_timeout, timeout);
//blr.addByteInt32(Const.isc_info_svc_timeout, timeout);
msg.addInt(Const.op_service_info);
msg.addInt(this.svchandle);
msg.addInt(0);
14 changes: 12 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -105,8 +105,18 @@ describe('Pooling', function () {
var poolSize = 2;
var pool;

before(function () {
pool = Firebird.pool(poolSize, config);
before(function (done) {
// create database if not exists (case of run only this test sequence)
Firebird.attachOrCreate(config, (err, db) => {
assert.ok(!err, err);

db.detach((err) => {
assert.ok(!err, err);

pool = Firebird.pool(poolSize, config);
done();
});
});
});

after(function (done) {