[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2066) HSQL DB + multi-schema --> raised an exception (Problem to get an increment key [select max(id) from table)

Fabrício Lemos (JIRA) noreply at atlassian.com
Wed Oct 22 10:04:05 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31494#action_31494 ] 

Fabrício Lemos commented on HHH-2066:
-------------------------------------

The default_catalog only solve this issue if your default is the same used in the table.

> HSQL DB + multi-schema --> raised an exception (Problem to get an increment key [select max(id) from table)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-2066
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2066
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.0.cr4
>         Environment: HSQL DB 1.8.x
>            Reporter: XOrangOutan
>   Original Estimate: 3 hours
>  Remaining Estimate: 3 hours
>
> When trying to save an object that has an "incremental" primary key, Hibernate API tries to know what the max current id is by executing a "SELECT MAX".
> Though, in this particular sql query, schema name is not taken into account (in hsqldialect). This cause an error that prevents anyone from carrying out unit tests.
> This bug also exists on 3.x versions

-- 
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