PlentifulDOCS
  • Start
PlentifulDOCS
PlentifulDOCS
  • Start
PlentifulDOCS

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

Database

Keywords

triggerfunctionstatementrowNEWOLDSQL

Is this helpful?


View discussion on GitHub
  • Need some help?

    Contact support
  • Latest product updates?

    See Changelog

© Plentiful, Inc.—ContributingAuthor StyleguideOpen SourceSupaSquad
Twitter
GitHub
Discord
Youtube
  1. Troubleshooting