Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

document autosave #30

@davecramer

Description

@davecramer

New connection property: autosave

conservative (default) -- rollback to savepoint only in case of "prepared statement does not exist" and "cached plan must not change result type". Then the driver would re-execute the statement ant it would pass through
never -- never set automatic safepoint. Note: in this mode statements might still fail with "cached plan must not change result type" in autoCommit=FALSE mode
always -- always rollback to "before statement execution" state in case of failure. This mode prevents "current transaction aborted" errors. It is similar to psql's ON_ERROR_ROLLBACK.
For autocommit=true the savepoint is not used.
In conservative mode, savepoint is used only for queries that return something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions