|
|
@@ -81,7 +81,7 @@ class Zend_Db_Statement_Mysqli extends Zend_Db_Statement
|
|
|
* @see Zend_Db_Statement_Mysqli_Exception
|
|
|
*/
|
|
|
require_once 'Zend/Db/Statement/Mysqli/Exception.php';
|
|
|
- throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error);
|
|
|
+ throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error, $mysqli->errno);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -218,7 +218,7 @@ class Zend_Db_Statement_Mysqli extends Zend_Db_Statement
|
|
|
* @see Zend_Db_Statement_Mysqli_Exception
|
|
|
*/
|
|
|
require_once 'Zend/Db/Statement/Mysqli/Exception.php';
|
|
|
- throw new Zend_Db_Statement_Mysqli_Exception("Mysqli statement execute error : " . $this->_stmt->error);
|
|
|
+ throw new Zend_Db_Statement_Mysqli_Exception("Mysqli statement execute error : " . $this->_stmt->error, $this->_stmt->errno);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -230,7 +230,7 @@ class Zend_Db_Statement_Mysqli extends Zend_Db_Statement
|
|
|
* @see Zend_Db_Statement_Mysqli_Exception
|
|
|
*/
|
|
|
require_once 'Zend/Db/Statement/Mysqli/Exception.php';
|
|
|
- throw new Zend_Db_Statement_Mysqli_Exception("Mysqli statement metadata error: " . $this->_stmt->error);
|
|
|
+ throw new Zend_Db_Statement_Mysqli_Exception("Mysqli statement metadata error: " . $this->_stmt->error, $this->_stmt->errno);
|
|
|
}
|
|
|
}
|
|
|
|