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
Unable to rename table with qualified target table name #10234
Comments
Thank you very much for your report. I think there had been similar cases in the past where qualified renames didn't work for other object types. We should add integration tests for all of these rename operations to make sure qualification works if the source and target schema are the same, which should always work irrespective of the dialect. |
Looking into this now. This isn't Oracle specific. Numerous dialects are affected, among others:
We're already unqualifying the target table name in:
I'm not sure why this hasn't been done yet for all affected dialects. |
When renaming a table using jOOQ on Oracle dialect using qualified table names, an oracle exception is raised:
ORA-14047: ALTER TABLE|INDEX RENAME may not be combined with other operations
.Code sample:
jOOQ translates this code the following SQL query
The query fails on the database with ORA error
ORA-14047
When you omit the schema name, the query executes without any issue:
Versions:
3.13.2 (pro)
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0
The text was updated successfully, but these errors were encountered: