Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Modified the next line and added the subequent lines to show the full SQL query and params:
- //throw new Zend_Db_Statement_Exception($e->getMessage(), (int) $e->getCode(), $e);
- $msg = "SQL ERROR: ". $e->getMessage() . "\n";
- $msg .= "SQL QUERY: <span style='color: maroon;'>" . $this->_stmt->queryString."</span>\n";
- if(!empty($params)) {
- $msg .= "SQL PARAMS: ('". implode("','", $params) ."')\n";
- }
- $dbsEx = new Zend_Db_Statement_Exception($msg, (int) $e->getCode(), $e);
- throw $dbsEx;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement