-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add primary key on temp table #9770
Conversation
This PR adds the PK no matter what database engine we're using, right? Given that we use that temp table in an Opinions on this, @greg0ire @beberlei? I think we should enable @wiseguy1394 Can you please run |
I don't have much to say on this, it seems fine, and I can't see how it would hurt. |
Please associate your email address with your Github account, or change the |
Ah ok.. sry..I tried to changed the author for my commit, hope it worked. |
It resulted in 3 commits, because I think you reset the author, then tried to push and noticed my commit, and you merged them both. I put it back to 1 commit. Please try again, but after doing: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this need all columns of the primary key of the entity instead just the first one? Otherwise it will lead to primary key duplicates for entities with multiple columns.
Does the MultiTableDeleteExecutor
require the same change?
This will probably increase performance of these commands.
Is there anything I must/could do? |
You could answer @beberlei's questions. 😉 |
Oh ok, I answered the questions with yes in my commits ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* 2.13.x: PHPStan 1.7.9 (doctrine#9812) Remove empty test file (doctrine#9805) Remove calls to deprecated MockBuilder::setMethods() (doctrine#9808) Deprecate passing null to Query::setFirstResult() Rename Abstract*Test to *TestCase (doctrine#9806) Add primary key on temp table (doctrine#9770) Fix wrong types (doctrine#9802) Widen return type Update baseline Fix Add type for AssociationMapping
… to prevent exception on sql_require_primary_key=ON
Fixes #9768