Skip to content

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Jun 22, 2023

A couple SchemaTarget implementations weren't checking if the targetSchema was resolved as part of the Resolved() method. Added tests, audited the other implementations, and simplified the logic to use a new method on Schema to check that column default expressions are resolved.

Fixes: dolthub/dolt#6206

Dolt CI Run: dolthub/dolt#6213

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM, good fix. Just one note

@fulghum fulghum merged commit f3cc2fe into main Jun 23, 2023
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.

Panic when altering a column in a table where another column uses a function in a default expression
2 participants