Catching PHP/MySQL errors with query()

2009-02-13 Thread RichardAtHome
Hi All :-) How do you trap errors that may be the result of a custom query? For example: $results = $model-query($sql); In my case, some of the custom sql queries creates such a large dataset that the script exceeds the memory allocated to php. I would like to catch these errors and present

Re: Catching PHP/MySQL errors with query()

2009-02-13 Thread mscdex
On Feb 13, 11:30 am, RichardAtHome richardath...@gmail.com wrote: How do I stop Cake from trapping errors so I can use my own error handler, and how do I re-enable Cake error handling after the bit of code I want to check has finished? You can implement your own custom handler that extends