Skip to content
Snippets Groups Projects
Commit f4160f3e authored by Artur Sabirov's avatar Artur Sabirov
Browse files

fix(query.pest): use SelectFull in Insert rule

parent a1ed8926
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -196,7 +196,7 @@ Query = { (SelectFull | Values | Insert | Update | Delete) ~ DqlOption? }
Asc = { ^"asc" }
Desc = { ^"desc" }
SubQuery = { "(" ~ (SelectFull | Values) ~ ")" }
Insert = { ^"insert" ~ ^"into" ~ Table ~ ("(" ~ TargetColumns ~ ")")? ~ (Values | Select) ~ OnConflict? }
Insert = { ^"insert" ~ ^"into" ~ Table ~ ("(" ~ TargetColumns ~ ")")? ~ (SelectFull | Values) ~ OnConflict? }
TargetColumns = { Identifier ~ ("," ~ Identifier)* }
OnConflict = _{ ^"on conflict" ~ ^"do" ~ (DoNothing | DoReplace | DoFail) }
DoReplace = { ^"replace" }
......
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