DB: remove unused parameter - was forgotten during the migration to doctrine

* 377e9a8677 <- doctrine merge
remotes/origin/poc-doctrine-migrations
Morris Jobke 10 years ago
parent 8cb0d97b10
commit 47ecfd98a3
  1. 5
      lib/private/db.php
  2. 5
      lib/public/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();
}

@ -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());
}
}

Loading…
Cancel
Save