Figure out how to return last inserted ID from Oracle DB using reactive-oracle-client
#566
Labels
help wanted
Extra attention is needed
reactive-oracle-client
#566
Problem encountered in https://github.com/jsmrcka/quarkus-test-suite/blob/d93d2700b93b5607df1846af2ea6adc97369cdd7/sql-db/vertx-sql/src/main/java/io/quarkus/qe/vertx/sql/services/DbPoolService.java#L96, while trying to implement Oracle-specific
save
method.Sample of DDL:
Tried out approach: look for a sequence, which should be automacially generated upon creation of the
IDENTITY
column, and invokeCURRVAL
.(Inspired by https://www.oracletutorial.com/oracle-sequence/oracle-create-sequence/.)
However, this does not work:
I tried to adopt other approaches used for other DBs in https://github.com/jsmrcka/quarkus-test-suite/blob/QUARKUS-1407-vertx-sql/sql-db/vertx-sql/src/main/java/io/quarkus/qe/vertx/sql/services/DbPoolService.java, but with no luck - AFAIK, Oracle does not provide anything similar to
or
Any help appreciated.
The text was updated successfully, but these errors were encountered: