[
https://issues.apache.org/jira/browse/DERBY-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569412#action_12569412
]
Kathey Marsden commented on DERBY-2653:
---------------------------------------
I was looking at the javadoc for prepareStatement(String sql, String[]
columnNames) and noticed that it says:
"The driver will ignore the array if the SQL statement is not an INSERT
statement, or an SQL statement able to return auto-generated keys (the list of
such statements is vendor-specific)."
I wonder if this means that instead of throwing an exception if the user
specifies a non-identity column or more than one column, we should just ignore
those values, not throw an exception. That would certainly make things simpler
for client.
> 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
> Priority: Minor
>
> 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.