Skip to content
Permalink
Browse files

Copying the statement query string to the exception in LoggingStatement

This makes the SQL show in the error page when something bad occurs
  • Loading branch information...
lorenzo committed Sep 24, 2014
1 parent fbe99ff commit f93e5a6078006676d9a20c9563ccde716527530a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Database/Log/LoggingStatement.php
@@ -52,6 +52,7 @@ public function execute($params = null) {
try {
$result = parent::execute($params);
} catch (\Exception $e) {
$e->queryString = $this->queryString;
$query->error = $e;
$this->_log($query, $params, $t);
throw $e;

0 comments on commit f93e5a6

Please sign in to comment.
You can’t perform that action at this time.