Welcome Guest, Not a member yet? Register   Sign In
Trapping DB errors with Active Record
#1

[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?
#2

[eluser]robnecciai[/eluser]
+1

Same question here ... I need this too!!!
#3

[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
#4

[eluser]InsiteFX[/eluser]
Yes!

Then submit a request to the Reactor Team on User Voice!

Reactor User Voice

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB