mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
Add support for 'START TRANSACTION' syntax
This commit is contained in:
parent
a8eeb899e3
commit
d529389522
@ -14,6 +14,8 @@ bool ParserTransactionControl::parseImpl(Pos & pos, ASTPtr & node, Expected & ex
|
|||||||
|
|
||||||
if (ParserKeyword("BEGIN TRANSACTION").ignore(pos, expected))
|
if (ParserKeyword("BEGIN TRANSACTION").ignore(pos, expected))
|
||||||
action = ASTTransactionControl::BEGIN;
|
action = ASTTransactionControl::BEGIN;
|
||||||
|
else if (ParserKeyword("START TRANSACTION").ignore(pos, expected))
|
||||||
|
action = ASTTransactionControl::BEGIN;
|
||||||
else if (ParserKeyword("COMMIT").ignore(pos, expected))
|
else if (ParserKeyword("COMMIT").ignore(pos, expected))
|
||||||
action = ASTTransactionControl::COMMIT;
|
action = ASTTransactionControl::COMMIT;
|
||||||
else if (ParserKeyword("ROLLBACK").ignore(pos, expected))
|
else if (ParserKeyword("ROLLBACK").ignore(pos, expected))
|
||||||
|
Loading…
Reference in New Issue
Block a user