Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix special case for now() string #2360

Merged
merged 1 commit into from
Mar 1, 2024
Merged

fix special case for now() string #2360

merged 1 commit into from
Mar 1, 2024

Conversation

jycor
Copy link
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
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
8 checks passed
@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