Skip to content

Commit

Permalink
Fix: Volatility reset on recreating PG functions
Browse files Browse the repository at this point in the history
  • Loading branch information
r3-gabriel committed Oct 30, 2024
1 parent 2d4933f commit 592ec2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema/pgFunction/pgFunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ func RecreateAffectedBy_tx(tx pgx.Tx, entity string, entityId uuid.UUID) error {
var f types.PgFunction
if err := tx.QueryRow(db.Ctx, `
SELECT id, module_id, name, code_args, code_function, code_returns,
is_frontend_exec, is_login_sync, is_trigger
is_frontend_exec, is_login_sync, is_trigger, volatility
FROM app.pg_function
WHERE id = $1
`, id).Scan(&f.Id, &f.ModuleId, &f.Name, &f.CodeArgs, &f.CodeFunction,
&f.CodeReturns, &f.IsFrontendExec, &f.IsLoginSync, &f.IsTrigger); err != nil {
`, id).Scan(&f.Id, &f.ModuleId, &f.Name, &f.CodeArgs, &f.CodeFunction, &f.CodeReturns,
&f.IsFrontendExec, &f.IsLoginSync, &f.IsTrigger, &f.Volatility); err != nil {

return err
}
Expand Down

0 comments on commit 592ec2e

Please sign in to comment.