Jira issue originally created by user @beberlei:
Database Portability is expensive but often necessary. We should support the important Compatibility Layer Options that MDB2 has:
The following I think are doable:
There should be a class extending "Doctrine\DBAL\Connection" making use of the 'wrapperClass' option. Two new classes are necessary:
Comment created by @beberlei:
To use define the following three parameters:
$params = array();
$params['wrapperClass'] = 'Doctrine\DBAL\Portability\Connection';
$params['portability'] = Doctrine\DBAL\Portability\Connection::PORTABILITY_ALL;
$params['fetch*case'] = \PDO::CASE*LOWER;
$conn = DriverManager::getConnection($params, $config, $evm);
This mode probably hits performance pretty hard,but it allows you to write code that works with all the quirks of fetching values from all database vendors.
Issue was closed with resolution "Fixed"