From 1d2deb40fa6862e43c7b2b37fc8996ed2dc201dd Mon Sep 17 00:00:00 2001 From: Kurdakov Alexander <kusancho12@gmail.com> Date: Wed, 29 May 2024 12:05:23 +0300 Subject: [PATCH] chore: remove redundant space from query.pest --- doc/sql/query.ebnf | 4 ++-- sbroad-core/src/frontend/sql/query.pest | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/sql/query.ebnf b/doc/sql/query.ebnf index ff923d08f..5b0276c5e 100644 --- a/doc/sql/query.ebnf +++ b/doc/sql/query.ebnf @@ -59,7 +59,7 @@ literal ::= 'TRUE' | decimal | string -dml ::= (call | delete | insert | update) +dml ::= (call | delete | insert | update) ( 'OPTION' '(' (('VTABLE_MAX_ROWS' | 'SQL_VDBE_MAX_STEPS') '=' unsigned) (',' (('VTABLE_MAX_ROWS' | 'SQL_VDBE_MAX_STEPS') '=' unsigned))* @@ -143,7 +143,7 @@ create_procedure ::= 'CREATE' 'PROCEDURE' procedure '(' type (',' type)* ')' create_role ::= 'CREATE' 'ROLE' role create_table ::= 'CREATE' 'TABLE' table '(' - column type ('NOT'? 'NULL')? (',' column type ('NOT'? 'NULL')?)* ',' + column type ('NOT'? 'NULL')? (',' column type ('NOT'? 'NULL')?)* ',' 'PRIMARY KEY' '(' column (',' column)* ')' ')' ('USING' ('MEMTX' | 'VINYL'))? diff --git a/sbroad-core/src/frontend/sql/query.pest b/sbroad-core/src/frontend/sql/query.pest index 76cfe9bff..334085581 100644 --- a/sbroad-core/src/frontend/sql/query.pest +++ b/sbroad-core/src/frontend/sql/query.pest @@ -97,7 +97,7 @@ DDL = _{ CreateTable | DropTable | CreateIndex | DropIndex | CreateProc | DropPr CreateIndex = { ^"create" ~ Unique? ~ ^"index" ~ Identifier ~ ^"on" ~ Table - ~ IndexType? ~ "(" ~ Parts ~ ")" ~ IndexOptions? ~ TimeoutOption? + ~ IndexType? ~ "(" ~ Parts ~ ")" ~ IndexOptions? ~ TimeoutOption? } Unique = { ^"unique" } IndexType = { ^"using" ~ (Tree | Hash | RTree | BitSet) } @@ -115,7 +115,7 @@ DDL = _{ CreateTable | DropTable | CreateIndex | DropIndex | CreateProc | DropPr RunCountPerLevel = { ^"run_count_per_level" ~ "=" ~Unsigned } RunSizeRatio = { ^"run_size_ratio" ~ "=" ~ Decimal } Dimension = { ^"dimension" ~ "=" ~ Unsigned } - Distance = { ^"distance" ~ "=" ~ (Euclid | Manhattan) } + Distance = { ^"distance" ~ "=" ~ (Euclid | Manhattan) } Euclid = { ^"euclid" } Manhattan = { ^"manhattan" } Hint = { ^"hint" ~ "=" ~ (True | False) } -- GitLab