[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-1476) Table.qualify does not handle dialect diferences

Mike A. Meyer (JIRA) noreply at atlassian.com
Thu Nov 22 05:12:57 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike A. Meyer updated HHH-1476:
-------------------------------

    Attachment: informix-table-qname-patch.diff

The following patch resolves this issue for Informix and allows any Dialect implementation to be adapted.
It has been testet on both the current head revision (as of  2007-11-20)  und v3.2.4sp1 (the failing non-applicable patch hunk can be ignored safely) used as JPA provider with JBoss 4.2.1-GA  and IBM Informix Dynamic Server Version 10.00.FC4.


> Table.qualify does not handle dialect diferences
> ------------------------------------------------
>
>                 Key: HHH-1476
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1476
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>         Environment: Hibernate 3.1.2
> SQL Server 2000
>            Reporter: Justin Kolb
>         Attachments: informix-table-qname-patch.diff
>
>
> The fix for HHH-699 caused me to discover that Hibernate isn't handling qualifying table names properly. It can be inferred from HHH-699 that not all databases are similar in this respect so I think this should be added to the dialect handling. From my short research I have the following 3 cases:
> SQL Server: database.owner.table
> MySQL: database.table (no schemas it seems)
> Most others: catalog.schema.table
> SQL Server also allows for "database..table" since it does not have schemas but does allow you to write queries that cross databases similar to how you can cross schemas in other database servers.
> Testing on Postgres though I determined that it does not allow "catalog..table" and will only accept "catalog.schema.table", so it dos not match up with SQL Server in this respect. If you write "catalog.table" it thinks you are trying to use a schema so it does not match up with MySQL in this respect.
> So right now only MySQL and SQL Server are the non standard compliant databases. Before 3.1 beta 1, SQL Server was handled correctly; then after that only MySQL was handled correctly.
> I'm not sure how much work it would take to make this change.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list