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

Introduce ARITY to PrimaryKeyTrait #2180

Closed
wants to merge 4 commits into from
Closed

Introduce ARITY to PrimaryKeyTrait #2180

wants to merge 4 commits into from

Conversation

tyt2y3
Copy link
Member

@tyt2y3 tyt2y3 commented Mar 29, 2024

This is one of the last breaking changes I want to ship in 1.0

@tyt2y3
Copy link
Member Author

tyt2y3 commented Mar 29, 2024

@billy1624 can you help looking at the test failures?

@@ -116,7 +116,7 @@ where
{
// so that self is dropped before entering await
let mut query = self.query;
if db.support_returning() && <A::Entity as EntityTrait>::PrimaryKey::iter().count() > 0 {
Copy link
Member Author

@tyt2y3 tyt2y3 Mar 29, 2024

Choose a reason for hiding this comment

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

I believe all our primary keys has len > 0, so this check is redundant? @billy1624

Copy link
Member

Choose a reason for hiding this comment

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

Redundant indeed!

@billy1624 billy1624 mentioned this pull request Apr 3, 2024
@tyt2y3
Copy link
Member Author

tyt2y3 commented Apr 3, 2024

Closed in favour of #2185

@tyt2y3 tyt2y3 closed this Apr 3, 2024
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