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
jOOQ Migration Issue from Version 3.14 to 3.19 with PostgreSQL 14 with alter table drop cascade #16562
Comments
Thanks for your report. Unfortunately, from your description, it is not clear what exactly fails, and why. While it may not be necessary to provide a fully self-contained reproducer (e.g. using our template here https://github.com/jOOQ/jOOQ-mcve), can you please provide more information about what you're doing. E.g.:
Also, any other additional information that is required to reproduce the issue, please add it. |
Fork:Here is the link to the fork of the project where the issue can be reproduced: Issue Description:While executing the jOOQ code generation, I received a syntax error related to an SQL statement attempting to modify a table in the database. Here's the error log from the console:
Code Generation Configuration:Here is the relevant section of my Maven configuration for the jOOQ code generation:
Could you please help in identifying the root cause of this syntax error and suggest any possible solutions? Thank you in advance for your assistance. |
I see, so you're using the The difference in behaviour may be caused by the fact that a previous jOOQ version didn't generate the unsupported keyword in H2. This issue cannot be fixed easily for the Alternatively, you can always use testcontainers for your code generation, for better results as it won't run into such dialect incompatibilities: As a short term workaround, if you can't avoid the |
Expected behavior
In jOOQ version 3.14, the following SQL query executes successfully:
Actual behavior
Environment:
jOOQ Version: 3.19
Database: PostgreSQL 14
However, after upgrading to jOOQ 3.19, the same project fails during the Maven build process (maven clean package) with errors related to schema export:
This error appears to be a syntax issue with the SQL command generated by the new version of jOOQ when attempting to modify the schema.
Steps to reproduce the problem
jOOQ Version
3.19.7
Database product and version
PostgreSQL 14.5 (Debian 14.5-2.pgdg110+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Java Version
openjdk version "21"
JDBC / R2DBC driver name and version (include name if unofficial driver)
No response
The text was updated successfully, but these errors were encountered: