diff --git a/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/BaseRule.g4 b/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/BaseRule.g4 index 539dd685a1b14..1df5aca695065 100644 --- a/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/BaseRule.g4 +++ b/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/BaseRule.g4 @@ -301,6 +301,7 @@ orderByItem dataType : dataTypeName dataTypeLength? characterSet? collateClause? | dataTypeName LP_ STRING_ (COMMA_ STRING_)* RP_ characterSet? collateClause? + | (SMALLINT | INTEGER | BIGINT) LBT_ arrayDimension RBT_ ; dataTypeName @@ -329,3 +330,8 @@ ignoredIdentifier dropBehaviour : (CASCADE | RESTRICT)? ; + +arrayDimension + : LBT_ ((NUMBER_ COLON_)? NUMBER_ RBT_) (COMMA_ LBT_ ((NUMBER_ COLON_)? NUMBER_ RBT_))* + | NUMBER_ (COMMA_ NUMBER_)* + ; \ No newline at end of file diff --git a/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/FirebirdKeyword.g4 b/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/FirebirdKeyword.g4 index 88999220b97a5..723529ccdbf3b 100644 --- a/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/FirebirdKeyword.g4 +++ b/parser/sql/dialect/firebird/src/main/antlr4/imports/firebird/FirebirdKeyword.g4 @@ -711,6 +711,9 @@ ROW : R O W ; +BIGINT + : B I G I N T + ; //PASSWORD // : P A S S W O R D