Updated grammar

This commit is contained in:
lukaseder 2018-01-25 10:01:06 +01:00
parent 4db17151f6
commit 70354dbb22

View File

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