Trapping DB errors with Active Record |
[eluser]mscahill[/eluser]
I've scoured the manual and the AR class, and I can't see any way to trap errors with Active Record. Is my only option to turn on DB debug and use output buffering on every single query to try to trap errors? Isn't there a way to retrieve the last error from the database object?
[eluser]spaquet[/eluser]
Is $this->output->enable_profiler(TRUE); a good starting point ? There is an option : queries Listing of all database queries executed, including execution time TRUE Have a look here http://ellislab.com/codeigniter/user-gui...iling.html That might not cover the whole thing, but give serious hints
[eluser]InsiteFX[/eluser]
Yes! Then submit a request to the Reactor Team on User Voice! Reactor User Voice InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |