With a lot of help from threads here, I have been able to get
transactions working with my MySQL database. However, the problem that
I am running into now is that I don't know when SQL or other types of
errors occur that would make me want to rollback the transaction. I
looked into the onError() callback, but it does not look like it is
implemented for CakePHP 1.1. Also, because of how my database is
setup, I am using $this->execute(..sql code...) in some of my models
which does not return 'false' or something that would indicate an
error has happened.

I don't want to upgrade to 1.2 because it is in Alpha status.

My question is then how can I determine if one of my sql statements
fails so I can rollback the transaction.

Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to