Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to return the Trigger Action #191

Open
martindsouza opened this issue Sep 13, 2018 · 0 comments
Open

Function to return the Trigger Action #191

martindsouza opened this issue Sep 13, 2018 · 0 comments
Assignees
Milestone

Comments

@martindsouza
Copy link
Member

In triggers the following conditional predicates are available: insert, updating, deleting.

Logging the type of trigger event can require a bunch of repetitive code. Have a function that looks like (pseudo code):

l_return := case
  when inserting then 'inserting'
  when updating then 'updating'
  when deleting then 'deleting'
  else null; -- This will occur when not in a "each row" trigger
@martindsouza martindsouza added this to the 1.1.0 milestone Sep 13, 2018
@martindsouza martindsouza self-assigned this Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant