Skip to content

Commit

Permalink
Merge pull request #1518 from zendesk/luke/now-function-length-support
Browse files Browse the repository at this point in the history
Mysql NOW function precision support
  • Loading branch information
lukestephenson-zendesk committed Jun 8, 2020
2 parents 8fc3119 + 2a24480 commit a76ae34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/antlr4/imports/column_definitions.g4
Original file line number Diff line number Diff line change
Expand Up @@ -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) ('(' ')')?;

0 comments on commit a76ae34

Please sign in to comment.