Skip to content

It is not possible to start a transaction without specifying an isolation level #30

Closed
@ant-zuev

Description

@ant-zuev

default_tpb with Isolation.SNAPSHOT is used when we do not define a custom tpb. But with this, I can't initialize a tpb without specifying an isolation level.
In the TPB class, the default isolation is SNAPSHOT:

isolation: Isolation = Isolation.SNAPSHOT,

The Connection class also uses the SNAPSHOT type by default:
self.default_tpb: bytes = tpb(Isolation.SNAPSHOT)

According to the documentation, the server already uses the default SNAPSHOT isolation type:
https://firebirdsql.org/file/documentation/chunk/en/refdocs/fblangref40/fblangref40-transacs.html#fblangref40-transacs-settransac-iso

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