Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FirebirdSQL/python3-driver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: FirebirdSQL/python3-driver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release-1.x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Sep 26, 2026

  1. Return -1 from Cursor.affected_rows for statements without row counts

    Cursor.affected_rows requested the RECORDS statement info before checking
    the statement type. For DDL statements the server does not answer that
    request, so reading rowcount after e.g. CREATE TABLE raised
    InterfaceError("Result code does not match request code") instead of
    returning -1 as documented (and as PEP 249 requires).
    
    Check the statement type first and only request the row counts for
    SELECT/INSERT/UPDATE/DELETE statements. This matches the behaviour of the
    2.x line.
    aminghadersohi committed Sep 26, 2026
    Configuration menu
    Copy the full SHA
    d153157 View commit details
    Browse the repository at this point in the history
  2. Guard iAttachment.detach() against an already-released interface (1.x)

    Backport of the #69 fix (#72) to release-1.x. During cyclic garbage
    collection the iAttachment's own iReferenceCounted.__del__ may run release()
    before Connection.__del__ calls detach(); the v5 detach() override then
    dereferenced freed memory and segfaulted. Restore the if self._refcnt guard
    that iAttachment_v4.detach() already has.
    
    Fixes #77.
    aminghadersohi committed Sep 26, 2026
    Configuration menu
    Copy the full SHA
    375055e View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2026

  1. Merge pull request #78 from aminghadersohi/fix-gc-detach-1.x

    Guard iAttachment.detach() against an already-released interface (1.x backport of #69)
    pcisar authored Oct 7, 2026
    Configuration menu
    Copy the full SHA
    e091764 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #76 from aminghadersohi/fix-affected-rows-ddl-1.x

    Return -1 from Cursor.affected_rows for statements without row counts (1.x)
    pcisar authored Oct 7, 2026
    Configuration menu
    Copy the full SHA
    7eb2ea3 View commit details
    Browse the repository at this point in the history
Loading