Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

1422: Explicit or implicit commit is not allowed in stored function or trigger

create procedure test( a int )
MODIFIES SQL DATA
BEGIN
  START TRANSACTION ;
  update t set col='some value' where id=a ;
  COMMIT ;
END //
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Explicit #implicit #commit #allowed #stored #function #trigger
ADD COMMENT
Topic
Name
1+5 =