Updating method getdsn get connection parameters

This commit is contained in:
Gabriel Gonçalves 2017-10-05 16:31:47 -03:00 committed by Cooperl Arc Atlantique
parent 95bce1ed3a
commit 35c2806fe2

View File

@ -17,7 +17,7 @@ class ODBCZOSConnector extends ODBCConnector
protected function getDsn(array $config) protected function getDsn(array $config)
{ {
$dsnParts = [ $dsnParts = [
"odbc:DRIVER=$driverName", 'odbc:DRIVER=%s',
'Database=%s', 'Database=%s',
'Hostname=%s', 'Hostname=%s',
'Port=%s', 'Port=%s',
@ -28,6 +28,7 @@ class ODBCZOSConnector extends ODBCConnector
]; ];
$dsnConfig = [ $dsnConfig = [
$config['driverName'],
$config['database'], $config['database'],
$config['host'], $config['host'],
$config['port'], $config['port'],