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
Statement-level triggers for INSERT, UPDATE, DELETE [CORE1268] #1690
Comments
Modified by: Igor Lobov (ivl)description: Create a way to create statement-level triggers for INSERT, UPDATE and DELETE, which executing ?nce, not for each row . => Create a way to create statement-level triggers for INSERT, UPDATE and DELETE, which executing once, not for each row . |
Modified by: Igor Lobov (ivl)Component: Engine [ 10000 ] |
Commented by: @asfernandes How and for what you would use it? |
Commented by: Igor Lobov (ivl) I have three cases: 1. We could use statement-level triggers for log operations when we need to register just only fact (user name, date and time or/and duration) of operator execution (INSERT, DELETE or UPDATE). CREATE Table2 ( In field 'Continuous_sequence_field' I want to have continuous sequence. |
Modified by: @pcisarWorkflow: jira [ 12131 ] => Firebird [ 14811 ] |
Commented by: Bernardo Signori (bernardo) This should be the default behaviour according to the sql standard. The sql standard has an optional clause "for each row" that makes the trigger execute once for each row affected by the statement (the current Firebird behaviour). |
Commented by: Ain Valtin (ain) There is ticket for making create trigger syntax compliant with SQL2003 (CORE711) which is marked as fixed in FB2.1, but unfortunately it only addresses the placement of the table name part of the syntax, not FOR EACH {ROW | STATEMENT} part :( |
Submitted by: Igor Lobov (ivl)
Votes: 4
Create a way to create statement-level triggers for INSERT, UPDATE and DELETE, which executing once, not for each row .
The text was updated successfully, but these errors were encountered: