Closed charles-cooper closed 8 years ago
This commit adds a RETURNING clause to UPDATE queries. Previously the provided model was simply returned to the user, but this is wrong if there are row-level triggers on the table. Adding RETURNING allows us to return the correct model to the user.
Fixes https://github.com/alevy/postgresql-orm/issues/13
:+1: thanks!
This commit adds a RETURNING clause to UPDATE queries. Previously the provided model was simply returned to the user, but this is wrong if there are row-level triggers on the table. Adding RETURNING allows us to return the correct model to the user.
Fixes https://github.com/alevy/postgresql-orm/issues/13