Skip to content

Fix "connection shutdown" exceptions. Fix #72.#83

Closed
fdcastel wants to merge 9 commits intopauldex:mainfrom
fdcastel:fix-72
Closed

Fix "connection shutdown" exceptions. Fix #72.#83
fdcastel wants to merge 9 commits intopauldex:mainfrom
fdcastel:fix-72

Conversation

@fdcastel
Copy link
Copy Markdown
Contributor

@fdcastel fdcastel commented Jul 4, 2025

Based on #82. Fix #72.

@fdcastel
Copy link
Copy Markdown
Contributor Author

fdcastel commented Jul 4, 2025

Unfortunately the problem still persists. Performing a more thorough analysis.

@fdcastel
Copy link
Copy Markdown
Contributor Author

fdcastel commented Jul 5, 2025

I've explored every possible solution in the SQLAlchemy dialect, but it seems the only place to fix this is in the Firebird Python driver.

I've submitted an issue to the upstream project.

@pauldex
Copy link
Copy Markdown
Owner

pauldex commented Jul 5, 2025 via email

@bkcsfi
Copy link
Copy Markdown

bkcsfi commented Jan 21, 2026

@fdcastel thanks for the PR, they fixed my issues.

I cloned this repo, applied your patches and vendored the results in my company gitlab.

@fdcastel
Copy link
Copy Markdown
Contributor Author

@bkcsfi Thanks for the feedback.

I’m working with the Firebird Foundation to move this repository to their GitHub organization, which will (hopefully) improve the project’s release and publishing processes.

@fdcastel
Copy link
Copy Markdown
Contributor Author

fdcastel commented Jan 24, 2026

@bkcsfi I'm working with @pauldex to provide a new release under the umbrella of the Firebird GitHub organization. A new official release should follow soon.

In the meantime, I'm publishing unofficial builds of sqlalchemy-firebird at:

The latest build is v2.2.0-beta2, which targets SQLAlchemy 2.0.49+ and firebird-driver 2.0.2+.

You can use it as a direct dependency by referencing the wheel in your pyproject.toml:

dependencies = [
    "sqlalchemy-firebird @ https://github.com/fdcastel/sqlalchemy-firebird-fork/releases/download/v2.2.0-beta2/sqlalchemy_firebird-2.2-py3-none-any.whl",
]

Or with pip:

pip install https://github.com/fdcastel/sqlalchemy-firebird-fork/releases/download/v2.2.0-beta2/sqlalchemy_firebird-2.2-py3-none-any.whl

UPDATE: I've updated the above instructions to latest release.

@fdcastel
Copy link
Copy Markdown
Contributor Author

Update: This turned out to be a problem in the upstream project. I submitted a fix, and it has already been merged.

Using python3-driver v2.0.2 resolves the issue.

I'm closing this PR now.

@fdcastel fdcastel closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

firebird driver - firebird.driver.types.DatabaseError: connection shutdown

3 participants