You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some cases I want to create 'insert on conflict update' (for Postgres) with RETURNING and custom conflict_target (in PG terms).
For this i was use InsertStatement as base class and override InsertStatement#prepareSQL it is works fine. Except insert is does not return column when it is presented in arguments.
Returning values is replaced with arguments:
I can not override processResults - it is private.
I can override PreparedStatementApi.executeInternal(transaction: Transaction): Int, but resultedValues setter is private.
Therefore current design does not provide easy way to disable replacement of returned values.
The text was updated successfully, but these errors were encountered:
For some cases I want to create 'insert on conflict update' (for Postgres) with
RETURNING
and customconflict_target
(in PG terms).For this i was use InsertStatement as base class and override
InsertStatement#prepareSQL
it is works fine. Except insert is does not return column when it is presented in arguments.Returning values is replaced with arguments:
Exposed/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/statements/InsertStatement.kt
Line 73 in 9c0d295
I can not override
processResults
- it is private.I can override
PreparedStatementApi.executeInternal(transaction: Transaction): Int
, butresultedValues
setter is private.Therefore current design does not provide easy way to disable replacement of returned values.
The text was updated successfully, but these errors were encountered: