sqlite3_preupdate_depth

This function is designed to be called from within a pre-update callback only. It returns zero if the change that caused the callback was made immediately by a user SQL statement. Or, if the change was made by a trigger program, it returns the number of trigger programs currently on the stack (1 for a top-level trigger, 2 for a trigger fired by a top-level trigger etc.).

For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL or SET DEFAULT action is considered a trigger.

sqlite3_preupdate_depth()

This function is designed to be called from within a pre-update callback only. It returns zero if the change that caused the callback was made immediately by a user SQL statement. Or, if the change was made by a trigger program, it returns the number of trigger programs currently on the stack (1 for a top-level trigger, 2 for a trigger fired by a top-level trigger etc.).

For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL or SET DEFAULT action is considered a trigger.

sqlite3_preupdate_depth()

This function is designed to be called from within a pre-update callback only. It returns zero if the change that caused the callback was made immediately by a user SQL statement. Or, if the change was made by a trigger program, it returns the number of trigger programs currently on the stack (1 for a top-level trigger, 2 for a trigger fired by a top-level trigger etc.).

For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL or SET DEFAULT action is considered a trigger.

sqlite3_preupdate_depth()

This function is designed to be called from within a pre-update callback only. It returns zero if the change that caused the callback was made immediately by a user SQL statement. Or, if the change was made by a trigger program, it returns the number of trigger programs currently on the stack (1 for a top-level trigger, 2 for a trigger fired by a top-level trigger etc.).

For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL or SET DEFAULT action is considered a trigger.

sqlite3_preupdate_depth()

This function is designed to be called from within a pre-update callback only. It returns zero if the change that caused the callback was made immediately by a user SQL statement. Or, if the change was made by a trigger program, it returns the number of trigger programs currently on the stack (1 for a top-level trigger, 2 for a trigger fired by a top-level trigger etc.).

For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL or SET DEFAULT action is considered a trigger.

sqlite3_preupdate_depth()