Fix BEGIN / CANCEL / COMMIT full statements

This commit is contained in:
Tobie Morgan Hitchcock 2022-04-27 02:29:32 +01:00
parent 4275f93c57
commit e6fe7e675b
3 changed files with 0 additions and 3 deletions

View file

@ -28,7 +28,6 @@ fn begin_basic(i: &str) -> IResult<&str, BeginStatement> {
fn begin_query(i: &str) -> IResult<&str, BeginStatement> {
let (i, _) = tag_no_case("BEGIN")(i)?;
let (i, _) = shouldbespace(i)?;
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
Ok((i, BeginStatement))
}

View file

@ -28,7 +28,6 @@ fn cancel_basic(i: &str) -> IResult<&str, CancelStatement> {
fn cancel_query(i: &str) -> IResult<&str, CancelStatement> {
let (i, _) = tag_no_case("CANCEL")(i)?;
let (i, _) = shouldbespace(i)?;
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
Ok((i, CancelStatement))
}

View file

@ -28,7 +28,6 @@ fn commit_basic(i: &str) -> IResult<&str, CommitStatement> {
fn commit_query(i: &str) -> IResult<&str, CommitStatement> {
let (i, _) = tag_no_case("COMMIT")(i)?;
let (i, _) = shouldbespace(i)?;
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
Ok((i, CommitStatement))
}