jOOQ update returning clause with Oracle -


according http://www.jooq.org/doc/3.8/manual/sql-building/sql-statements/update-statement/ jooq doesn't support returning clause in update statements databases except firebird , postgres.

does know, still correct oracle jooq? according oracle's documentation, oracle db supports returning clase delete, insert, or update statements.

incorrect manual

you're right - manual wrong , should fixed:
https://github.com/jooq/jooq/issues/5470

single row update returning

jooq 3.8 added support single row update .. returning statements. internally, uses callablestatement , pl/sql block of form:

begin   update "my_table"   set "my_table"."column" = 'xyz'   "my_table"."id" = 1   returning      "my_table"."id",      "my_table"."column"   ?, ?;   ? := sql%rowcount; end; 

the relevant issue is:
https://github.com/jooq/jooq/issues/5190

multi row update returning

as of jooq 3.8, multi-row update .. returning statements not yet supported:
https://github.com/jooq/jooq/issues/5191


Comments

Popular posts from this blog

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -