Generated attributes on update?

I've got a table using a generated value (GENERATED ALWAYS) which can change on updates. generated? true only appears to affect inserts. I'm guessing there is a toggle somewhere to handle this maybe? Even if there's just a way to tell an update action, "Hey, definitely get the return value on the update for this one," that would also be perfect. I didn't see any obvious way in the DSLs but... that doesn't mean much, lol.
3 Replies
ZachDaniel
ZachDaniel•2mo ago
🤔 that may be a bug? We should add returning on updates for those columns too
smooth nuts
smooth nutsOP•2mo ago
Lemme know if you have dug into this, otherwise I'm happy to patch. (Although I'm never sad for you to point me to the correct module, lol.)
ZachDaniel
ZachDaniel•2mo ago
nope, I haven't

Did you find this page helpful?