Skip to content
Snippets Groups Projects
Commit 6ec6d883 authored by Kurdakov Alexander's avatar Kurdakov Alexander
Browse files

fix: rename [on tier] clause of create table

parent a15e31df
No related branches found
No related tags found
1 merge request!481fix: rename [on tier] clause of create table
Pipeline #45416 failed
......@@ -147,7 +147,7 @@ create_table ::= 'CREATE' 'TABLE' table
(',' 'PRIMARY' 'KEY' '(' column (',' column)* ')')?
')'
('USING' ('MEMTX' | 'VINYL'))?
('DISTRIBUTED' (('BY' '(' column (',' column)* ')' ('ON' 'TIER' '(' tier ')')?) | 'GLOBALLY'))
('DISTRIBUTED' (('BY' '(' column (',' column)* ')' ('IN' 'TIER' tier)?) | 'GLOBALLY'))
create_user ::= 'CREATE' 'USER' user 'WITH'? 'PASSWORD' "'" password "'"
('USING' ('CHAP-SHA1' | 'LDAP' | 'MD5'))?
alter_user ::= 'ALTER' 'USER' user
......
......@@ -74,7 +74,7 @@ DDL = _{ CreateTable | DropTable | CreateIndex | DropIndex
Distribution = { ^"distributed" ~ (Global | Sharding) }
Global = { ^"globally" }
Sharding = { ^"by" ~ "(" ~ Identifier ~ ("," ~ Identifier)* ~ ")" ~ Tier? }
Tier = { ^"on" ~ ^"tier" ~ "(" ~ Identifier ~ ")" }
Tier = { ^"in" ~ ^"tier" ~ Identifier }
DropTable = { ^"drop" ~ ^"table" ~ Table ~ TimeoutOption? }
CreateProc = {
......
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