-
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
Fix #5684 - Fix mapping on insertion for autoincrement columns with custom types #5935
Conversation
Ok, it turned out to be a bigger problem than I initially thought 😉 I'm not sure if everything is covered but it looks good to me. Let me know if I forgot something or in the case a test case is missing. I don't know what I think about the requirement to add a |
@mantiz I've combined your test case with @renan's code and rebased it with |
Handled in #6152 |
Fixes #5684
The problem when using a custom type for autoincrement columns is that the value of autoincrement column returned by the database gets assigned directly without respecting mapping information. This only happens for insertion. When you fetch the records, the value is already mapped correctly.