Fixed grammar

This commit is contained in:
lukaseder 2018-01-25 11:13:49 +01:00
parent c089ae8dcd
commit b063a11e0e

View File

@ -23,10 +23,12 @@ ddlStatement =
| dropViewStatement
| dropSequenceStatement
| dropSchemaStatement
| renameStatement
| truncateStatement
| grantStatement
| renameStatement
| revokeStatement
| setCatalogStatement
| setSchemaStatement
| truncateStatement
;
dmlStatement =
@ -98,8 +100,9 @@ alterViewStatement = 'ALTER VIEW' [ 'IF EXISTS' ] tableName
;
commentStatement = 'COMMENT ON' (
'TABLE' tableName
| 'COLUMN' fieldName
'COLUMN' fieldName
| 'TABLE' tableName
| 'VIEW' tableName
)
break
'IS' stringLiteral
@ -160,6 +163,12 @@ renameStatement = 'RENAME'
)
;
setCatalogStatement = 'SET CATALOG' catalogName
;
setSchemaStatement = 'SET SCHEMA' schemaName
;
truncateStatement = 'TRUNCATE TABLE' tableName [ 'CONTINUE IDENTITY' | 'RESTART IDENTITY' ] [ 'CASCADE' | 'RESTRICT' ]
;
@ -690,6 +699,7 @@ dataType =
| 'BLOB' [ '(' unsignedInteger ')' ]
| 'BOOLEAN'
| 'CHAR' [ '(' unsignedInteger ')' ]
| 'CHARACTER' [ '(' unsignedInteger ')' ]
| 'CLOB' [ '(' unsignedInteger ')' ]
| 'DATE'
| 'DECIMAL' [ '(' unsignedInteger [ ',' unsignedInteger ] ')' ]