-
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
Infer type from field instead of column #9153
Conversation
need labels: "Bug" and "Failing Test" |
Please improve your commit message according to the contributing guide. Specifically, the commit message should explain what did not work before exactly, and why it works now. Here is the commit message I would reverse-engineer after reading your PR:
|
Please kindly squash your commits together. If you don't, we'll try to remember to do it for you but it's best if you save us this trouble. How to do that?
|
Commits are squashed |
Please use |
done. |
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.
As a related but separate issue from the issue at hand, I think we should either document that the $columnName
argument is supposed to be quoted if that's indeed the intended usage, or improve that method to make it work regardless of whether it is quoted or not.
Thank you very much for your effort @greg0ire |
@armenio you're welcome! I notice there is an issue with PostgreSQL though, can you please look into it? |
getTypeOfColumn() relies on getTypeOfField(), and does not suffer from mismatching issues caused by quoting, because you cannot quote a field. Since a field can be composite, that method returns an array, hence why we need to select the first element.
Fixed PgSQL error with changing strategy to "AUTO" in @GeneratedValue of PK's |
@greg0ire This should maybe even target a new 2.9.7 or? It was merged to 2.9.6 as far as i see breaking a core function. |
@beberlei 2.9.x is no longer supported, and upgrading to 2.10.x does not seem like a huge deal so I would backport it iff someone complains they cannot upgrade. Otherwise, it's a good incentive to get people to upgrade IMO 🙂 |
Thanks @armenio ! |
@greg0ire I guess another suggestion could be to downgrade to 2.9.4 |
getTypeOfColumn() relies on getTypeOfField(), and does not suffer from
mismatching issues caused by quoting, because you cannot quote a field.
Since a field can be composite, that method returns an array, hence why we
need to select the first element.
Fixes #9109 caused by #9010