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

Do not lose constraint errmessage when a constraint is ALTERed #5701

Merged
merged 1 commit into from Jun 27, 2023

Conversation

msullivan
Copy link
Member

The worst part here was that this could occur when the constraint
was altered implicitly by _propagate_if_expr_refs because a
pointer that it used was modified.

The worst part here was that this could occur when the constraint
was altered *implicitly* by _propagate_if_expr_refs because a
pointer that it used was modified.
inherited['errmessage'] = True

attrs['errmessage'] = errmessage

Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit puzzled how errmessage gets inherited from abstract constraints now

Copy link
Member Author

Choose a reason for hiding this comment

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

Through the normal generic inheritance mechanisms, right?

As far as I could tell, errmessage doesn't need any special handling

@msullivan msullivan merged commit b2c6b65 into master Jun 27, 2023
21 checks passed
@msullivan msullivan deleted the errmessage-lossage branch June 27, 2023 19:54
msullivan added a commit that referenced this pull request Jul 6, 2023
The worst part here was that this could occur when the constraint
was altered *implicitly* by _propagate_if_expr_refs because a
pointer that it used was modified.
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.

None yet

2 participants