Skip to content
Snippets Groups Projects
Commit 0da372ec authored by Maksim Kaitmazian's avatar Maksim Kaitmazian Committed by Arseniy Volynets
Browse files

fix: trim trailing spaces in query.pest

parent da14a03a
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -102,7 +102,7 @@ Query = { (SelectWithOptionalContinuation | Values | Insert | Update | Delete) ~
UnionAllContinuation = { ^"union" ~ ^"all" ~ Select }
Select = {
^"select" ~ Projection ~ ^"from" ~ Scan ~
Join? ~ WhereClause? ~
Join? ~ WhereClause? ~
(^"group" ~ ^"by" ~ GroupBy)? ~
(^"having" ~ Having)?
}
......@@ -127,7 +127,7 @@ Query = { (SelectWithOptionalContinuation | Values | Insert | Update | Delete) ~
GroupBy = { GroupingElement ~ ("," ~ GroupingElement)* }
Having = { Expr }
SubQuery = { "(" ~ (SelectWithOptionalContinuation | Values) ~ ")" }
Insert = { ^"insert" ~ ^"into" ~ Table ~ ("(" ~ TargetColumns ~ ")")? ~
Insert = { ^"insert" ~ ^"into" ~ Table ~ ("(" ~ TargetColumns ~ ")")? ~
(Values | Select) ~ OnConflict? }
TargetColumns = { ColumnName ~ ("," ~ ColumnName)* }
OnConflict = _{ ^"on conflict" ~ ^"do" ~ (DoNothing | DoReplace | DoFail) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment