Your code is fine and it should work. Problem is elsewhere. Most probably
autocommit is still on for some reasons (maybe your database does not
support transactions at all?)

*failure is never final
*Hope you'll work it out

Reply via email to