Open bergmark opened 10 years ago
Good question. Currently Opaleye does not support this. I suppose to work around this you would currently have to read the values in before writing them out again.
I guess the update functions would need to take a QueryArr
instead of an ExprArr
to support this. Do you know what happens if the select returns more than one row? Does it fail at runtime?
ERROR: more than one row returned by a subquery used as an expression
OK, it will be very hard to do this in a typesafe way so maybe we should just accept less type safety here.
I'd like to generate queries like this:
As far as I can tell this isn't possible since the update only takes an
ExprArr wires maybewires
.Any ideas how to accomplish this?