Skip to content

fix special case for now() string#2360

Merged
jycor merged 1 commit intomainfrom
james/now
Mar 1, 2024
Merged

fix special case for now() string#2360
jycor merged 1 commit intomainfrom
james/now

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Mar 1, 2024

The BATS tests import-mysqldump.bats was failing due to a recent string replace case added by #2357.

I didn't account for when NOW() would be used with other functions inside a DEFAULT column expression, and was replacing the "NOW(" with "CURRENT_TIMESTAMP(". This was causing problems as we reparse ColumnDefaultExprs, resulting in unparenthesized default expressions, which threw an error.

Copy link
Copy Markdown
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚢

@jycor jycor merged commit f7c7c83 into main Mar 1, 2024
@jycor jycor deleted the james/now branch March 1, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants