Skip to content

Commit

Permalink
TEIID-4596
Browse files Browse the repository at this point in the history
  • Loading branch information
rareddy committed Dec 2, 2016
1 parent 4ef5a67 commit adac145
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client-dev/JDBC_Support.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ If you’re needs go beyond JDBC, Teiid has also provided link:JDBC_Extensions.a

Teiid supports returning generated keys for JDBC sources and from Teiid temp tables with SERIAL primary key columns. However the current implementation will return only the last set of keys generated and will return the key results directly from the source - no view projection of other intermediate handling is performed. For most scenarios (single source inserts) this handling is sufficient. A custom solution may need to be developed if you are using a FOR EACH ROW instead of trigger to process your inserts and target multiple tables that each return generated keys. It is possible to develop a UDF that also manipulates the returned generated keys - see the `org.teiid.CommandContext` methods dealing with generated keys for more.

NOTE: Generated Keys is not supported when the JDBC Batched updates is used to insert the values into the source table.

0 comments on commit adac145

Please sign in to comment.