explicit or implicit commit is not allowed in stored function or trigger.
By Lula Zieme at Apr 17 2020