Skip to content

Commit

Permalink
Complete DSN for PDO_IBM connections
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperl22 committed Mar 14, 2019
1 parent 32be149 commit ca2c195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connectors/IBMConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IBMConnector extends DB2Connector
*/
protected function getDsn(array $config)
{
$dsn = "ibm:{$config['database']}";
$dsn = "ibm:DRIVER={$config['driverName']};DATABASE={$config['database']};HOSTNAME={$config['host']};PORT={$config['port']};PROTOCOL=TCPIP;";

return $dsn;
}
Expand Down

0 comments on commit ca2c195

Please sign in to comment.