osTicket/osTicket-1.8 — pull request #18 by greezybacon (2013-10-16 13:50:24+00:00)
Title: Emit a backtrace on db_error logs

This will help by giving the context of PHP execution along with the DB error. That way developers can know why the database query was executed along with why the statement failed.

This also closes a regression where database errors are not logged from ORM queries