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
Hi Team, primary key inserting as null when generatortype.identity from 2.0.202 but it was worked for 1.04.200 #12802
Comments
Thanks a lot for your report. Since you mention JPA, am I right in assuming you're using the To be sure I'll be fixing the right thing, I'd love to see some actual reproducer. In the issue template, we're asking for an MCVE (template here: https://github.com/jOOQ/jOOQ-mcve), which would be perfect for this. But some sample code (code generation configuration, jOOQ code, your actual query, etc.) would also be helpful |
Hibernate ORM generates invalid H2, since the version 2.0.4, has a |
Thanks for chiming in, @katzyn. So the query is Hibernate generated? I was assuming it might have been a jOOQ native query... |
|
Hi @katzyn i have seen few fixes in version 2.1.210 which is similar to this issue are Issue #3321,PR #3381. Issue #3321 is specifically calling out null insertion here where agreed it as bug. hope its an issue from h2 rather than from hibernate orm |
h2database/h2database#3321 isn't related in any way. It is about a bug in insert into TEST(TEST_key, TEST_id, TESTTIME, TEST_off, TEST_on) values (null, ?, ?, ?, ?) is a wrong command and it is rejected by H2 2.x as it should. H2 has a |
@katzyn I really appreciate and thank you for your quickresponse and fix on it. now its working fine with ;MODE=LEGACY configuration. |
Since jOOQ does not seem to be involved in this particular interaction, I'm closing this issue. |
actuval behaviour:
It should not insert null as a primary key and when generatortype is identity
expected behaviour:
it should support generatortype is identity and doesn't create null to insert into DB.
it was worked for 1.4.200 but not working from 2.0.202.
exception is below:
The text was updated successfully, but these errors were encountered: