Skip to content

Remove "session" from "set transaction" statement #263

@bgrainger

Description

@bgrainger

The BeginTransaction method executes a set session transaction isolation level statement (here).

As per 14.3.6 SET TRANSACTION Syntax:

  • With the SESSION keyword, the statement applies to all subsequent transactions performed within the current session.
  • Without any SESSION or GLOBAL keyword, the statement applies to the next (not started) transaction performed within the current session. Subsequent transactions revert to using the SESSION isolation level.

The use of the SESSION keyword is inappropriate here, as we only want to change the isolation level for the immediate next transaction.

(See also MySQL bug 86263.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions