Complete DSN for PDO_IBM connections

This commit is contained in:
Maxime Rault 2019-03-14 15:19:28 +01:00
parent 32be149f95
commit ca2c195c8f

View File

@ -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;
}