Commit daf4f16f authored by Steve Müller's avatar Steve Müller

fix portability connection in DB2

parent 814a9800
......@@ -37,7 +37,7 @@ class Connection extends \Doctrine\DBAL\Connection
const PORTABILITY_EMPTY_TO_NULL = 4;
const PORTABILITY_FIX_CASE = 8;
const PORTABILITY_DB2 = 1;
const PORTABILITY_DB2 = 9;
const PORTABILITY_ORACLE = 9;
const PORTABILITY_POSTGRESQL = 13;
const PORTABILITY_SQLITE = 13;
......@@ -78,7 +78,7 @@ class Connection extends \Doctrine\DBAL\Connection
} else if ($this->_platform->getName() === 'sqlsrv') {
$params['portability'] = $params['portabililty'] & self::PORTABILITY_SQLSRV;
} else if ($this->_platform->getName() === 'db2') {
$params['portability'] = $params['portabililty'] & self::PORTABILITY_DB2;
$params['portability'] = self::PORTABILITY_DB2;
} else {
$params['portability'] = $params['portability'] & self::PORTABILITY_OTHERVENDORS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment