Gagan logoGAGANDOCS
  • Start
Gagan logoGAGANDOCS
Gagan logoGAGANDOCS
  • Start
Gagan logoGAGANDOCS

NEW variable is null in a trigger function.


When you create a function and call it from a trigger the NEW variable is only passed in if the trigger is on ROW operations

The UI currently defaults to STATEMENT which will not provide NEW or OLD variables to the function.

image

Also in SQL (reference: https://www.postgresql.org/docs/current/sql-createtrigger.html)

image

Metadata


Products

DatabaseFunctions

Keywords

triggerfunctionstatementrowNEWOLDSQL

Is this helpful?


View discussion on GitHub
  • Need some help?

    Contact support
  • Latest product updates?

    See Changelog
  • Something's not right?

    Check system status

© Gagan Inc—ContributingAuthor StyleguideOpen SourceGaganSquad
Twitter
GitHub
Discord
Youtube
  1. Troubleshooting