Skip to content

Commit ca2c195

Browse files
committed
Complete DSN for PDO_IBM connections
1 parent 32be149 commit ca2c195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connectors/IBMConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IBMConnector extends DB2Connector
1616
*/
1717
protected function getDsn(array $config)
1818
{
19-
$dsn = "ibm:{$config['database']}";
19+
$dsn = "ibm:DRIVER={$config['driverName']};DATABASE={$config['database']};HOSTNAME={$config['host']};PORT={$config['port']};PROTOCOL=TCPIP;";
2020

2121
return $dsn;
2222
}

0 commit comments

Comments
 (0)