Skip to content

Commit

Permalink
Add rcube_db::error_info()
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jul 20, 2023
1 parent 94c78b3 commit d2e020a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions program/lib/Roundcube/rcube_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,16 @@ protected function debug($query)
}
}

/**
* 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
*
Expand Down

0 comments on commit d2e020a

Please sign in to comment.