<< Back to previous view

[JDBC-10] Attempts to return generated keys on batch inserts fails on PostgreSQL and MS SQL Server Created: 18/Jun/11  Updated: 01/Jun/16  Resolved: 27/Jun/11

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Sean Corfield Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None


From andreasmk2:

"JDBC driver for PostgreSQL and ms-sql does not support returning of generated keys from statements executed in batch. The SQL exception was thrown when 'do-prepared*' was called with 'return-keys' set to true. Currently only the function 'insert-values' calls a new method 'do-single-prepared-get-keys*' when single relation is inserted."

Comment by Sean Corfield [ 27/Jun/11 5:54 PM ]

I just committed a potential fix for this. It's available in the Sonatype snapshots repo.

Generated at Sat Jan 20 11:23:33 CST 2018 using JIRA 4.4#649-r158309.