Fix DEFINE INDEX UNIQUE statement parsing
This commit is contained in:
parent
f97e16a036
commit
89baebbd24
1 changed files with 1 additions and 5 deletions
|
@ -1019,11 +1019,7 @@ fn index(i: &str) -> IResult<&str, DefineIndexStatement> {
|
||||||
let (i, _) = alt((tag_no_case("COLUMNS"), tag_no_case("FIELDS")))(i)?;
|
let (i, _) = alt((tag_no_case("COLUMNS"), tag_no_case("FIELDS")))(i)?;
|
||||||
let (i, _) = shouldbespace(i)?;
|
let (i, _) = shouldbespace(i)?;
|
||||||
let (i, cols) = idiom::locals(i)?;
|
let (i, cols) = idiom::locals(i)?;
|
||||||
let (i, uniq) = opt(|i| {
|
let (i, uniq) = opt(tuple((shouldbespace, tag_no_case("UNIQUE"))))(i)?;
|
||||||
shouldbespace(i)?;
|
|
||||||
tag_no_case("UNIQUE")(i)?;
|
|
||||||
Ok((i, true))
|
|
||||||
})(i)?;
|
|
||||||
Ok((
|
Ok((
|
||||||
i,
|
i,
|
||||||
DefineIndexStatement {
|
DefineIndexStatement {
|
||||||
|
|
Loading…
Reference in a new issue