[OS-JIRA] Created: (CAY-272) PK generation failure with jTDS driver

From: jir..bjectstyle.org
Date: Wed Feb 09 2005 - 20:06:36 EST

  • Next message: Andrus Adamchik: "Re: Nested DataContexts / invalidated object events"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-272

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-272
        Summary: PK generation failure with jTDS driver
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.1
       Versions:
                 1.1

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Wed, 9 Feb 2005 8:05 PM
        Updated: Wed, 9 Feb 2005 8:05 PM
    Environment: SQLServer/jTDS driver

    Description:
    [this was already fixed on HEAD since 1.2M2]

    jTDS driver on sqlserver fails to generate PK via SybasePkgenerator (used on SQLServer as well):

    java.sql.SQLException: Was expecting a result set
            at net.sourceforge.jtds.jdbc.PreparedStatement_base.executeQuery(PreparedStatement_base.java:264)
            at org.objectstyle.cayenne.dba.sybase.SybasePkGenerator.pkFromDatabase(SybasePkGenerator.java:175)
            at org.objectstyle.cayenne.dba.JdbcPkGenerator.generatePkForDbEntity(JdbcPkGenerator.java:325)
            at org.objectstyle.cayenne.access.util.PrimaryKeyHelper.createPermIdsForObjEntity(PrimaryKeyHelper.java:183)
            at org.objectstyle.cayenne.access.ContextCommit.createPrimaryKeys(ContextCommit.java:580)
            at org.objectstyle.cayenne.access.ContextCommit.commit(ContextCommit.java:142)
            at org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1266)

    Explanation of this error is shown here: http://jtds.sourceforge.net/faq.html#expectingResultSet

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Wed Feb 09 2005 - 20:06:40 EST