db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: IDENTITY_VAL_LOCAL() vs getGeneratedKeys()
Date Sat, 14 May 2005 00:44:43 GMT
This is http://issues.apache.org/jira/browse/DERBY-201. Derby currently
has limitations getting auto generated columns.

Satheesh

Paul J. Lucas wrote:

>     I noticed that PreparedStatement has a getGeneratedKeys()
>     method.  I assume it's an alternate means of getting generated
>     key values that IDENTITY_VAL_LOCAL() would get.  So I tried it.
>     However, getGeneratedKeys() returns null.  I tried called
>     prepareStatement() with a second argument of an int[], but it
>     says "not implemented."
>
>     So is getGeneratedKeys() supposed to work?  Or must I use
>     IDENTITY_VAL_LOCAL() ?
>
>     - Paul
>
>
>


Mime
View raw message