Posgres triggers in transactions. I write a script that begins, modifies a row, which fires a the trigger, then selects the column modified by the trigger. It was modified. (In psql, autocommit=off.) Run exactly the same queries inside my app and the trigger doesn't fire. Why?
-
-
I agree that using CURRENT_TIMESTAMP is the most sensible. I guess I can write this test to use raw SQL, create the temporary table like you suggest, but `drop table if exists` first to clean up any that get left over from previous test runs.
-
Does Diesel provide any way to guarantee that this trigger is in place? Or would it let you create a purported `updated_at` column and forget to call that trigger-creation function?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.