summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/db.php5
-rw-r--r--lib/public/db.php5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 7e7bd4dd57e..673ad894b66 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -298,17 +298,16 @@ class OC_DB {
}
}
- public static function getErrorCode($error) {
+ public static function getErrorCode() {
$connection = \OC::$server->getDatabaseConnection();
return $connection->errorCode();
}
/**
* returns the error code and message as a string for logging
* works with DoctrineException
- * @param mixed $error
* @return string
*/
- public static function getErrorMessage($error) {
+ public static function getErrorMessage() {
$connection = \OC::$server->getDatabaseConnection();
return $connection->getError();
}
diff --git a/lib/public/db.php b/lib/public/db.php
index 02d0f6ddef4..c188352d77b 100644
--- a/lib/public/db.php
+++ b/lib/public/db.php
@@ -125,12 +125,11 @@ class DB {
/**
* returns the error code and message as a string for logging
* works with DoctrineException
- * @param mixed $error
* @return string
* @since 6.0.0
*/
- public static function getErrorMessage($error) {
- return(\OC_DB::getErrorMessage($error));
+ public static function getErrorMessage() {
+ return(\OC_DB::getErrorMessage());
}
}