[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1860) Autogeneration of primary keys for Sybase IDENTITY columns fails with latest jConn3 driver

Nick Chalko (JIRA) noreply at atlassian.com
Tue Jun 19 14:39:52 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27285 ] 

Nick Chalko commented on HHH-1860:
----------------------------------

This bug is fixed in EBF 13489. 

> Autogeneration of primary keys for Sybase IDENTITY columns fails with latest jConn3 driver
> ------------------------------------------------------------------------------------------
>
>                 Key: HHH-1860
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1860
>             Project: Hibernate3
>          Issue Type: Bug
>    Affects Versions: 3.2.0 cr1
>         Environment: JBoss 4.0.4GA, Adaptive Server Anywhere 9, jConnect using com.sybase.jdbc3.jdbc.SybDriver / jConn3.jar
>            Reporter: Erica Kane
>            Priority: Minor
>
> Sybase provides an IDENTITY column which is very useful for autogenerating primary keys for entity beans.  However, if version 6.05 of jConnect (the standard Sybase driver) is used, with com.sybase.jdbc3.jdbc.SybDriver, all inserts fail with a message that it was not possible to obtain the generated identity.
> Changing the datasource configuration to use com.sybase.jdbc2.jdbc.SybDriver fixes the problem.
> Hopefully this can be fixed -- I realize it may be Sybase's fault -- but if not, I hope this spares someone else the agony of figuring it out.

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