Skip to content

Commit 35c2806

Browse files
Gabriel Gonçalvescooperl22
authored andcommitted
Updating method getdsn get connection parameters
1 parent 95bce1e commit 35c2806

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Connectors/ODBCZOSConnector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ODBCZOSConnector extends ODBCConnector
1717
protected function getDsn(array $config)
1818
{
1919
$dsnParts = [
20-
"odbc:DRIVER=$driverName",
20+
'odbc:DRIVER=%s',
2121
'Database=%s',
2222
'Hostname=%s',
2323
'Port=%s',
@@ -28,6 +28,7 @@ protected function getDsn(array $config)
2828
];
2929

3030
$dsnConfig = [
31+
$config['driverName'],
3132
$config['database'],
3233
$config['host'],
3334
$config['port'],

0 commit comments

Comments
 (0)