Baptiste Rivalin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMWNiMDQ0ODli...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16762?atlOrigin=eyJpIjoiMWNiMD...
) HHH-16762 (
https://hibernate.atlassian.net/browse/HHH-16762?atlOrigin=eyJpIjoiMWNiMD...
) SchemaMigrator generates ORA-22859 errors on columns annotated with @Lob (
https://hibernate.atlassian.net/browse/HHH-16762?atlOrigin=eyJpIjoiMWNiMD...
)
Issue Type: Bug Affects Versions: 6.2.0, 6.2.4 Assignee: Unassigned Components:
hibernate-core Created: 07/Jun/2023 02:18 AM Environment: Oracle 19c Priority: Major
Reporter: Baptiste Rivalin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
Hello,
Using Hibernate in Update mode generates “alter table” on columns of type blob/clob which
seems to be forbidden in Oracle. Each time the alter table command is sent on these
columns, Oracle responds with an error of type ORA-22859.
From the test case I made, the corresponding exception looks like this :
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing
DDL "
alter table LobModel
modify blob blob" via JDBC [ORA-22859: modification non valide des
colonnes
My test case is available at :
https://github.com/brivalin/hibernate-test-case-templates
To reproduce the problem you have to :
* Modify the persistence.xml to point to your own Oracle database
* Run it once to generate the schema
* Run it a second time to throw the ORA-22859 error
The original Discussion is available here :
https://discourse.hibernate.org/t/schemamigrator-wants-to-alter-my-column...
(
https://hibernate.atlassian.net/browse/HHH-16762#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16762#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:62413c2 )