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

bin shu (JIRA) noreply at atlassian.com
Fri Feb 2 12:28:42 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2066?page=comments#action_25983 ] 

bin shu commented on HHH-2066:
------------------------------

Issue solved. 

In the hibernate.cfg.xm file, add "default_catalog" property, after that, everything works fine. 


> 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: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.2.0.cr4
>  Environment: HSQL DB 1.8.x
>     Reporter: XOrangOutan

>
> Original Estimate: 3 hours
>         Remaining: 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