mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 15:05:45 +00:00
MINOR Removed return of connection which is not used any longer
This commit is contained in:
parent
10a59a9a8d
commit
e2ec1fca0e
@ -52,10 +52,8 @@ class PostgreSQLDatabaseConfigurationHelper implements DatabaseConfigurationHelp
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure a database connection is possible using credentials provided.
|
* Ensure a database connection is possible using credentials provided.
|
||||||
* The established connection resource is returned with the results as well.
|
|
||||||
*
|
|
||||||
* @param array $databaseConfig Associative array of db configuration, e.g. "server", "username" etc
|
* @param array $databaseConfig Associative array of db configuration, e.g. "server", "username" etc
|
||||||
* @return array Result - e.g. array('success' => true, 'connection' => mysql link, 'error' => 'details of error')
|
* @return array Result - e.g. array('success' => true, 'error' => 'details of error')
|
||||||
*/
|
*/
|
||||||
public function requireDatabaseConnection($databaseConfig) {
|
public function requireDatabaseConnection($databaseConfig) {
|
||||||
$success = false;
|
$success = false;
|
||||||
@ -77,7 +75,6 @@ class PostgreSQLDatabaseConfigurationHelper implements DatabaseConfigurationHelp
|
|||||||
|
|
||||||
return array(
|
return array(
|
||||||
'success' => $success,
|
'success' => $success,
|
||||||
'connection' => $conn,
|
|
||||||
'error' => $error
|
'error' => $error
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user