db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4015) Regression in Statement.getGeneratedKeys()
Date Mon, 19 Jan 2009 12:06:00 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-4015:
--------------------------------------

    Attachment: Derby4015.java

Attaching new version of Derby4015.java with support for PostgreSQL.

PostgreSQL Native Driver
PostgreSQL 8.3 JDBC4 with SSL (build 603)

emptyArray test (new String[] { })
Empty Result

nonGeneratedColumn test: (new String[] { "value" })
Caught exception SQLSTATE=0A000 message=Returning autogenerated keys is not supported.

fakeColumn test: (new String[] { "notthere" })
Caught exception SQLSTATE=0A000 message=Returning autogenerated keys is not supported.

nullArray test: (new String[] { null })
Caught exception SQLSTATE=0A000 message=Returning autogenerated keys is not supported.

nullParam test (null)
Exception in thread "main" java.lang.NullPointerException
        at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:447)
        at Derby4015.runUntilGeneratedKeysCall(Derby4015.java:116)
        at Derby4015.nullParam(Derby4015.java:189)
        at Derby4015.main(Derby4015.java:81)

> Regression in Statement.getGeneratedKeys()
> ------------------------------------------
>
>                 Key: DERBY-4015
>                 URL: https://issues.apache.org/jira/browse/DERBY-4015
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.3.0
>         Environment: I am currently running on Mac 10.5 with Java 5. However, it has
also been observed on other platforms in our automated build such as SUSE Linux and Windows
with Java 5.
>            Reporter: Brandon Smith
>            Assignee: Kathey Marsden
>            Priority: Critical
>         Attachments: Behavior-Matrix.jpg, derby-10.3.2.1-tests.zip, derby-10.3.3.0-tests.zip,
Derby4015.java, Derby4015.java, Derby4015.java, Derby4015.java, Derby4015.java, updatedBehaviorMatrix.txt,
updatedBehaviorMatrix.txt
>
>
> The application of both DERBY-2653 and DERBY-3426 in the 10.3.3.0 seems to have created
a regression in how the network JDBC client implementation of PreparedStatement.getGeneratedKeys()
behaves as compared to 10.3.2.1. Note that there wasn't a change in behavior between versions
for the embedded implementation. However, in general there are behavior discrepancies between
the network and client implementations for this method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message