You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And interestingly, if I switch to the (unfortunately 10 times slower) firebirdsql library then it also works without issues so it really seems to be an issue with fdb:
- import fdb+ import firebirdsql as fdb
Gives the following when run:
❯ python3 script.py
5
The text was updated successfully, but these errors were encountered:
devnoname120
changed the title
macOS — SQLCODE: -904\n- invalid database handle (no active connection)
macOS — SQLCODE: -904\n- invalid database handle (no active connection)Dec 6, 2024
Crossposted from #103 (comment)
I use macOS and both the Firebird server and Python script run locally.
My configuration:
14.7.1
(Sonoma)5.0.1.1469
(arm64)3.12.8
2.0.2
However when I attempt to use
fdb
in order to connect to a Firebird database through a local server it doesn't work. I wrote the following code:And when I attempt to run it then an error happens on the
cursor.execute()
line:❯ python3 script.py Error: ('Error while starting transaction:\n- SQLCODE: -904\n- invalid database handle (no active connection)', -904, 335544324)
I confirm that I can indeed access the database via
isql
without any issues:And interestingly, if I switch to the (unfortunately 10 times slower)
firebirdsql
library then it also works without issues so it really seems to be an issue withfdb
:Gives the following when run:
The text was updated successfully, but these errors were encountered: