DBZ-4958 Annotate MariaDB-specific

This commit is contained in:
Chris Cranford 2022-05-23 13:55:43 -04:00 committed by Jiri Pechanec
parent fd7934598f
commit 62782bf806

View File

@ -193,18 +193,18 @@ createServer
; ;
createTable createTable
: CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? : CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? // OR is MariaDB-specific only
tableName tableName
( (
LIKE tableName LIKE tableName
| '(' LIKE parenthesisTable=tableName ')' | '(' LIKE parenthesisTable=tableName ')'
) #copyCreateTable ) #copyCreateTable
| CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? | CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? // OR is MariaDB-specific only
tableName createDefinitions? tableName createDefinitions?
( tableOption (','? tableOption)* )? ( tableOption (','? tableOption)* )?
partitionDefinitions? keyViolate=(IGNORE | REPLACE)? partitionDefinitions? keyViolate=(IGNORE | REPLACE)?
AS? selectStatement #queryCreateTable AS? selectStatement #queryCreateTable
| CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? | CREATE (OR REPLACE)? TEMPORARY? TABLE ifNotExists? // OR is MariaDB-specific only
tableName createDefinitions tableName createDefinitions
( tableOption (','? tableOption)* )? ( tableOption (','? tableOption)* )?
partitionDefinitions? #columnCreateTable partitionDefinitions? #columnCreateTable