sqlite engine fails with relative path and directory change

Issue #2036 resolved
Former user created an issue

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)

  1. Mike Bayer 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.

  2. Log in to comment