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
Regression when using INSERT .. RETURNING pre MariaDB 10.5 #14872
Comments
Thanks a lot for your report. Before I investigate, does Spring Boot correctly configure your versioned dialect to As a workaround, you could configure |
Ah, probably no need. It looks as though this change introduced a regression: |
definitely SQLDialect.MARIADB_10_3, suggested workaround fixes sql but we need/access the identity id from inserted records in numerous places, so not feasible for us. |
The integration tests do fail. There has not been a notification email for the failure of these dialect versions. Will investigate why that happened. The fix is on the way and will be released later today, given the severity. |
Fixed in jOOQ 3.19.0 and 3.18.2 (#14873). Thanks again for your report! |
The patch releases have been published yesterday. |
Expected behavior
for a simple table like this
and jooq configured w/ spring.jooq.sql-dialect=MARIADB_10_3
using the following code
inserts a new record and the record's id is available from r.getId()
(works as expected in jooq 3.17.8)
Actual behavior
According to https://mariadb.com/kb/en/insertreturning/ , insert...returning is only available in mariadb 10.5 and later
Steps to reproduce the problem
use mariadb v10.4, generated code for table with auto generated key, configure jooq with mariadb dialect before 10.5, and try to insert a new record.
jOOQ Version
jOOQ Prof. 3.18.0, 3.18.1
Database product and version
10.4.28-MariaDB-1:10.4.28+maria~ubu2004
Java Version
No response
OS Version
No response
JDBC driver name and version (include name if unofficial driver)
No response
The text was updated successfully, but these errors were encountered: