db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2653) Expose existing auto-generated key functionality through more JDBC APIs in Derby Client.
Date Tue, 19 Feb 2008 23:56:43 GMT

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

Kathey Marsden updated DERBY-2653:
----------------------------------

    Attachment: derby-2653_columnIndexes_diff.txt

Attached is a patch derby-2653_columnIndexes_diff.txt, which implements the columnIndexes
API's for client. The following API's are implemented:

  Connection.prepareStatement(String sql, int[] columnIndexes);
  Statement.execute(String sql, int[] columIndexes);
  Statement.executeUpdate(String sql, int[] columnIndexes);

It was necessary to change a lot of prepared statement constructors and create methods to
pass around the columnIndexes value in addition to columnNames. Otherwise the changes are
very similar to the changes made for the columnNames API's.  The same restrictions apply.
To return generated keys, the user must specify an array of columnIndexes of length 1.  The
actual value of that array is ignored at this time and we always return the generated key
for the identity column, regardless of the value of the single element array.

After I check this in I will file a bug against client that it does not reject columns that
are not identity columns.

suites.All and derbynetclientsmats passed with IBM 1.5, but I will rerun with 1.6 since some
*40* classes changed.



> Expose existing auto-generated key functionality through more JDBC APIs in Derby Client.
> ----------------------------------------------------------------------------------------
>
>                 Key: DERBY-2653
>                 URL: https://issues.apache.org/jira/browse/DERBY-2653
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC
>         Environment: Runnning with Derby Client.
>            Reporter: A B
>            Assignee: Kathey Marsden
>            Priority: Minor
>         Attachments: derby-2653_columnIndexes_diff.txt, derby-2653_columnNames2_diff.txt,
derby-2653_columnNames_diff.txt, derby-2653_columnNames_diff.txt, derby-2653_proto_diff.txt
>
>
> See DERBY-2631 for details.  Desired functionality is the same as for DERBY-2631, except
that this issue is specifically for Derby Client (DERBY-2631 only addressed embedded mode).

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