From 0d18cd681b5e5ed8e5df7d6303255a176b94bd33 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 8 Aug 2009 14:09:51 +0000 Subject: #543594 by Damien Tournoud: Bubble up exceptions in PDO. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index bad796820..7a94a7972 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -790,7 +790,7 @@ function _drupal_decode_exception($exception) { // or in one of its global functions. $db_functions = array('db_query', 'pager_query', 'db_query_range', 'db_query_temporary', 'update_sql'); while (!empty($backtrace[1]) && ($caller = $backtrace[1]) && - ((isset($caller['class']) && (strpos($caller['class'], 'Query') !== FALSE || strpos($caller['class'], 'Database') !== FALSE || $caller['class'] == 'PDOStatement')) || + ((isset($caller['class']) && (strpos($caller['class'], 'Query') !== FALSE || strpos($caller['class'], 'Database') !== FALSE || strpos($caller['class'], 'PDO') !== FALSE)) || in_array($caller['function'], $db_functions))) { // We remove that call. array_shift($backtrace); -- cgit v1.2.3