Skip to content

calling createTransaction without a name creates an invalid transaction #442

@groksrc

Description

@groksrc

createTransaction does not validate the name parameter: https://github.com/denodrivers/postgres/blob/main/client.ts#L200

As a result on subsequent calls to the transaction an error is returned that the transaction is not open because the name is undefined: https://github.com/denodrivers/postgres/blob/main/query/transaction.ts#L157

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