diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php index ee063c5c0..7e5d9fc07 100644 --- a/program/lib/Roundcube/rcube_db.php +++ b/program/lib/Roundcube/rcube_db.php @@ -333,6 +333,16 @@ class rcube_db } } + /** + * Getter for an information about the last error. + * + * @return ?array [SQLSTATE error code, driver specific error code, driver specific error message] + */ + public function error_info() + { + return $this->dbh ? $this->dbh->errorInfo() : null; + } + /** * Getter for error state *