Browse Source

Add rcube_db::error_info()

pull/9596/head
Aleksander Machniak 2 years ago
parent
commit
fd42f1c214
  1. 10
      program/lib/Roundcube/rcube_db.php

10
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
*

Loading…
Cancel
Save