Closed sywka closed 4 years ago
Without environment details and test case I can do nothing.
Sorry, I forgot write
await client.dispose();
But now I have an error: Error: connection shutdown
it("Error: connection shutdown", async () => {
const path = resolve("./TEST.FDB");
for (let i = 0; i < 2; i++) {
if (existsSync(path)) {
unlinkSync(path);
}
const client = createNativeClient(getDefaultLibraryFilename());
const attachment = await client.createDatabase(path, {username: "SYSDBA", password: "masterkey"});
const transaction = await attachment.startTransaction();
try {
await attachment.executeReturning(transaction, `SELECT 1 FROM RDB$DATABASE WHERE 1 != 1`);
} catch (error) {
console.log(error);
}
await transaction.commit();
await attachment.dropDatabase();
await client.dispose();
}
}, Math.pow(10, 5));
OS: macOS Mojave 10.14 Beta Node: 10.5.0 npm: 6.4.1
Driver version?
The last release: 0.1.0
No reproducible test case. Maybe already fixed.
Instead of generating a javascript error, sometimes the process ends with an error:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)