Ludwig Putz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDU3ZjhjNDAx...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16611?atlOrigin=eyJpIjoiZDU3Zj...
) HHH-16611 (
https://hibernate.atlassian.net/browse/HHH-16611?atlOrigin=eyJpIjoiZDU3Zj...
) Sybase: ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - db.tablename not found
(
https://hibernate.atlassian.net/browse/HHH-16611?atlOrigin=eyJpIjoiZDU3Zj...
)
Issue Type: Bug Affects Versions: 6.2.2 Assignee: Unassigned Components: hibernate-core
Created: 16/May/2023 03:49 AM Environment: SybaseASE16, openJdk17 Priority: Minor
Reporter: Ludwig Putz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
)
I use a Sybase-Instance with 2 databases. One database is in the jdbc url included. To
access tables from the other database i use the @Table annotation with the name, schema
und catalog attribute. This worked in 6.1.7 and 5.x.
Since i upgrade to version 6.2.2 the full table-name is build only with the name + catalog
attributes but without the schema attribute and i got the error “table not found”.
I debugged and the reason i found is:
In the SybaseDialect in the method “public NameQualifierSupport getNameQualifierSupport()”
the “NameQualifierSupport” changed from BOTH to CATALOG, therefore in the class
“QualifiedObjectNameFormatterStandardImpl” the “CatalogNameFormat” class is used instead
of the “CatalogSchemaNameFormat” to build the rootTableName (in the
“SingleTableEntityPersister” class).
(
https://hibernate.atlassian.net/browse/HHH-16611#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16611#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:6805d32 )