- attached sqlite.diff
sqlite engine fails with relative path and directory change
Changing the current directory while using a sqlite database with a pool class other than StaticPool will break all database access made from new connections.
Attached is the proposed fix that is to record the current directory at the time the engine is created and reuse that when opening connections. It uses os.path.abspath() to change relative paths to absolute ones.
Comments (5)
-
Account Deleted -
repo owner good idea.
-
repo owner - changed milestone to 0.7.0
Would you mind very much if I put this in 0.7 ? (beta 1 is due any day now, its mostly an issue of documenting the changes). Only because there's a slight chance this change is backwards compatible with some application that is relying upon the current behavior with
cd
. We like to keep 0.x.y versions such that an upgrade has zero chance of breaking any application, particularly later in the series. -
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
Proposed fix