Fix BEGIN / CANCEL / COMMIT full statements
This commit is contained in:
parent
4275f93c57
commit
e6fe7e675b
3 changed files with 0 additions and 3 deletions
|
@ -28,7 +28,6 @@ fn begin_basic(i: &str) -> IResult<&str, BeginStatement> {
|
||||||
|
|
||||||
fn begin_query(i: &str) -> IResult<&str, BeginStatement> {
|
fn begin_query(i: &str) -> IResult<&str, BeginStatement> {
|
||||||
let (i, _) = tag_no_case("BEGIN")(i)?;
|
let (i, _) = tag_no_case("BEGIN")(i)?;
|
||||||
let (i, _) = shouldbespace(i)?;
|
|
||||||
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
||||||
Ok((i, BeginStatement))
|
Ok((i, BeginStatement))
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ fn cancel_basic(i: &str) -> IResult<&str, CancelStatement> {
|
||||||
|
|
||||||
fn cancel_query(i: &str) -> IResult<&str, CancelStatement> {
|
fn cancel_query(i: &str) -> IResult<&str, CancelStatement> {
|
||||||
let (i, _) = tag_no_case("CANCEL")(i)?;
|
let (i, _) = tag_no_case("CANCEL")(i)?;
|
||||||
let (i, _) = shouldbespace(i)?;
|
|
||||||
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
||||||
Ok((i, CancelStatement))
|
Ok((i, CancelStatement))
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ fn commit_basic(i: &str) -> IResult<&str, CommitStatement> {
|
||||||
|
|
||||||
fn commit_query(i: &str) -> IResult<&str, CommitStatement> {
|
fn commit_query(i: &str) -> IResult<&str, CommitStatement> {
|
||||||
let (i, _) = tag_no_case("COMMIT")(i)?;
|
let (i, _) = tag_no_case("COMMIT")(i)?;
|
||||||
let (i, _) = shouldbespace(i)?;
|
|
||||||
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
let (i, _) = opt(tuple((shouldbespace, tag_no_case("TRANSACTION"))))(i)?;
|
||||||
Ok((i, CommitStatement))
|
Ok((i, CommitStatement))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue