Skip to content

BEGIN; is formatted as BEGIN TRANSACTION;, which is invalid in MySQL #1553

Closed
@lovasoa

Description

@lovasoa

BEGIN; is valid in MySQL, but not BEGIN TRANSACTION;: https://dev.mysql.com/doc/refman/8.4/en/commit.html

But sqlparser does not preserve the exact syntax of the statement, and always formats it as BEGIN TRANSACTION;, causing an execution error in MySQL.

Found while investigating sqlpage/SQLPage#711

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