Exposed
Exposed copied to clipboard
UPDATE..RETURNING support
It is possible to have updated rows back from a database. Let's support the syntax in Exposed too. Right now UpdateStatement return Int and thus isolates a possible ResultSet
Example reference from PostgreSQL https://www.postgresql.org/docs/9.5/static/sql-update.html
Are there other databases (besides PostgreSQL) which support returning affected rows with UPDATE?
Oracle should support it too.
Hey, this is a very important feature for my project. Is there any chance of upstream support?
Hey, this is a very important feature for my project. Is there any chance of upstream support?
Same
+1
+1 (6 months later)
+1!
+1
There are some UPDATE RETURNING code snippets in this duplicate: https://github.com/JetBrains/Exposed/issues/1271.
+1
+1