diff --git a/src/main/antlr4/imports/column_definitions.g4 b/src/main/antlr4/imports/column_definitions.g4 index 19ed8221c..f8fa57f06 100644 --- a/src/main/antlr4/imports/column_definitions.g4 +++ b/src/main/antlr4/imports/column_definitions.g4 @@ -115,6 +115,7 @@ length: '(' INTEGER_LITERAL ')'; int_flags: ( SIGNED | UNSIGNED | ZEROFILL ); decimal_length: '(' INTEGER_LITERAL ( ',' INTEGER_LITERAL )? ')'; -now_function: NOW '(' ')'; +now_function: NOW now_function_length; +now_function_length: length | '(' ')'; current_timestamp_length: length | '(' ')'; localtime_function: (LOCALTIME | LOCALTIMESTAMP) ('(' ')')?;