Reputation: 857
I use this lib to connect to embedded firebird database:
https://github.com/xdenser/node-firebird-libfbclient
after "cloning" and "npm install" i got the following error message:
con.connectSync('test.FDB','sysdba','masterkey','');
Error: While connecting - unsupported on-disk structure for file D:\FIREBIRD-TEST\test.FDB; found 11.2, support 12.0
I also try to use an older version of firebird (ver 2.1.15). With the following error:
module.js:355
Module._extensions[extension](this, filename);
^
Error: Das angegebene Modul wurde nicht gefunden.
D:\firebird-test\firebird\build\Release\binding.node
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (D:\firebird-test\firebird\firebird.js:1:77)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
Upvotes: 3
Views: 3445
Reputation: 109090
You get this error:
unsupported on-disk structure for file D:\FIREBIRD-TEST\test.FDB; found 11.2, support 12.0
This means that you try to open a Firebird 2.5 database (ODS 11.2) on Firebird 3. Firebird 3 only supports On-Disk Structure (ODS) version 12. You will need to upgrade your database by backing it up with Firebird 2.5 (+ Firebird 2.5 gbak) and restoring it under Firebird 3 (+ Firebird 3 gbak). See also ODS (On-Disk Structure) Changes in the Firebird 3 release notes.
The other error seems unrelated, and if I had to guess - I don't know node.js - could mean that you tried a 32 bit install instead of a 64 bit install (or the other way around), or that you didn't use fbembed.dll. In Firebird 3 Firebird embedded is delivered through fbclient.dll + engine12.dll, whereas Firebird 2.5 and earlier had a separate fbembed.dll.
Upvotes: 6