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

constraint_name condition is ignored in KEY_COLUMN_USAGE #55235

Closed
YangKeao opened this issue Aug 6, 2024 · 2 comments · Fixed by #55236
Closed

constraint_name condition is ignored in KEY_COLUMN_USAGE #55235

YangKeao opened this issue Aug 6, 2024 · 2 comments · Fixed by #55236
Labels
severity/major type/bug The issue is confirmed as a bug.

Comments

@YangKeao
Copy link
Member

YangKeao commented Aug 6, 2024

This issue is similar to #55156, and is introduced in #54333.

I'd like to introduce a better way to test these functions 🤔 . It's really easy to make mistakes by not using one of the extracted conditions.

@YangKeao YangKeao added the type/bug The issue is confirmed as a bug. label Aug 6, 2024
@YangKeao
Copy link
Member Author

YangKeao commented Aug 6, 2024

I found this issue by running the typeorm test on TiDB.

@YangKeao
Copy link
Member Author

YangKeao commented Aug 6, 2024

As it may cause some unexpected behavior of some ORM (or any software that depends on the result), I set the severity to major. typeorm will create wrong ALTER TABLE statement because it gets wrong information about the primary index, which is quite scaring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
1 participant