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
The .returning() function currently only supports strings (which should be the target table's column names). In reality they can accept any expression and (returning) query.
This should be supported:
insert into bar (val) values (123) returning (selectcount(*) from bar), id, val ||'test'
The returning function is used in insert, update and delete queries. So probably best to focus on getting one of those working. And later maybe create some reusable type if that's at all possible similar to something like SelectFn.
The return type in ResultSet<Returning, Test> probably already supports getting the type right.
The text was updated successfully, but these errors were encountered:
The
.returning()
function currently only supports strings (which should be the target table's column names). In reality they can accept any expression and (returning) query.This should be supported:
which would equate to something like:
The returning function is used in insert, update and delete queries. So probably best to focus on getting one of those working. And later maybe create some reusable type if that's at all possible similar to something like
SelectFn
.The return type in
ResultSet<Returning, Test>
probably already supports getting the type right.The text was updated successfully, but these errors were encountered: