MySQL Forums
Forum List  »  PHP

Re: MySql after inset trigger not exporting new inserted data into csv file
Posted by: Peter Brawley
Date: March 08, 2020 10:57AM

An After Insert Trigger fires before Commit, and the PHP sys_exec() call executes after the PHP script finishes---that has to be so, otherwise multi-operation transactions, rollbacks &c would be impossible. So usually it's a bad idea to invoke an external process from a Trigger.

Best practice; set a semaphore column which an external process polls.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySql after inset trigger not exporting new inserted data into csv file
March 08, 2020 10:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.