mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Add additional checks for the worker
This commit is contained in:
parent
cc7d5602a9
commit
bd88179419
5 changed files with 36 additions and 1 deletions
|
@ -1259,6 +1259,24 @@ class dba {
|
|||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the error number of the last query
|
||||
*
|
||||
* @return string Error number (0 if no error)
|
||||
*/
|
||||
public static function errorNo() {
|
||||
return self::$dbo->errorno;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the error message of the last query
|
||||
*
|
||||
* @return string Error message ('' if no error)
|
||||
*/
|
||||
public static function errorMessage() {
|
||||
return self::$dbo->error;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Closes the current statement
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue