Skip to content

Retrieve the currently set "returning" statement and amend it? #15898

Closed Answered by lukaseder
andrinpricemeier asked this question in Q&A
Discussion options

You must be logged in to vote

A little meta hint about the apologies: They just set the tone to "True, I actually hate replying to this." (even if I don't!) and with that, no one wins. You have valid questions and they may lead to improved documentation / etc.

Indeed, the InsertQueryImpl type only implements QOM.Insert, and not QOM.InsertReturning. That's an oversight (note the QOM APIs are still experimental, so there are a few rough spots like this). I've created an issue to address this:

I suspect there's no clean workaround for this, for now, other than using reflection.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@andrinpricemeier
Comment options

Comment options

You must be logged in to vote
1 reply
@lukaseder
Comment options

Answer selected by andrinpricemeier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment