-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return the option to clear the returning clause of a Query #12027
Comments
Thanks for your report
I'm assuming you're still referring to these lines here: I can see how there might be a regression, but rest assured that none of the jOOQ Irrespective of the above, this isn't where jOOQ wants to go, strategically, for these reasons:
So, instead of focusing on this "regression" (it happened to work by accident, and because you read the implementation, not because the API made any guarantees), let's focus on these 2 things:
It's a perfectly valid option, because it's as unclean as relying on an undocumented internal behaviour. Perhaps a bit more so. But how much worse can it get, given: https://github.com/gofabian/spring-boot-data-r2dbc-jooq/blob/fc144063f072b7187201ab697af56c94b4c68284/src/main/java/gofabian/r2dbc/jooq/JooqInternals.java 😀 |
I'm not a contributor to the I agree with your vision for future development and I'll adapt accordingly. |
Use case:
The functionality was implicitly removed as part of #11437.
I've described it here.
In short, this is preventing proper implementation and is a regression for https://github.com/gofabian/spring-boot-data-r2dbc-jooq.
This is only preventing queries using the
RETURNING
clause, but I doubt nowadays there's a project that's not making use of it at least once.Seeing the commit would make it clear why the
RETURNING
clause can no longer be cleared through the provided API - 82c18b3.Possible solution you'd like to see:
Add a method to reset/remove the returning clause in
AbstractDMLQuery
. The current setters likeAbstractDMLQuery#setReturning
now default to including all fields when an empty varargs/collection is passed instead of dropping it.Possible workarounds:
AFAIK, the only workaround is to set the
returning
field of the query object through reflection which is obviously not a clear solution so for now I'm rather stuck with version 1.14.8.Versions:
The text was updated successfully, but these errors were encountered: