Open lukaseder opened 1 year ago
This has been implemented as part of https://github.com/jOOQ/jOOQ/issues/13912
Ah no, this is specifically about AFTER
triggers, which are currently being ignored in most RDBMS with BEFORE
trigger support. I'll have to look at this again
Various implementations of
RETURNING
are currently quite undefined with respect to the handling ofAFTER INSERT
triggers.If a second query is run, then it seems obvious that fetching the row after the insert will effectively include
AFTER INSERT
trigger content.If we can run a single query using native
RETURNING
, then this isn't the case. That became obvious when trying to implement SQLite'sRETURNING
clause support:We should have a more unified and thus predictable way of handling this distinction.