[hibernate-issues] [JIRA] (HHH-14022) Oracle-Dialect does not find Sequences outside User-Schema

Hannes Rosenögger (JIRA) jira at hibernate.atlassian.net
Tue May 19 08:45:07 EDT 2020


Hannes Rosenögger ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ec3d023ae79a10c16a2bcc6 ) *commented* on HHH-14022 ( https://hibernate.atlassian.net/browse/HHH-14022?atlOrigin=eyJpIjoiNGU5YjVmNmYxM2JmNDQ0NmEyMDg3YzEyZmJkNTE2M2IiLCJwIjoiaiJ9 )

Re: Oracle-Dialect does not find Sequences outside User-Schema ( https://hibernate.atlassian.net/browse/HHH-14022?atlOrigin=eyJpIjoiNGU5YjVmNmYxM2JmNDQ0NmEyMDg3YzEyZmJkNTE2M2IiLCJwIjoiaiJ9 )

I think it can be fixed by changing this line to something like:

Select * from all_sequences where SEQUENCE_OWNER LIKE '<schema specified for sequence>';

https://github.com/NathanQingyangXu/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java#L493

Of course that would require passing the schema name to this function.

( https://hibernate.atlassian.net/browse/HHH-14022#add-comment?atlOrigin=eyJpIjoiNGU5YjVmNmYxM2JmNDQ0NmEyMDg3YzEyZmJkNTE2M2IiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14022#add-comment?atlOrigin=eyJpIjoiNGU5YjVmNmYxM2JmNDQ0NmEyMDg3YzEyZmJkNTE2M2IiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:09684e9 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200519/7898f390/attachment.html 


More information about the hibernate-issues mailing list