I'm using the Zend Framework 2 for application developement. The whole application is based on a IBM Informix database.
The database configuration looks something like this:
return array(
'db' => array(
'driver' => 'Pdo',
'dsn' => 'dsn:connection:string',
'driver_options' => array(
),
),
'service_manager' => array(
'factories' => array(
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
),
),
);
When querying the database by instantiating an Zend\Db\Sql\Select object, the queries are always getting quoted, which should not happen because Informix can't handle the query anymore.
Expected Querystring:
SELECT column1, column2 FROM table
Zend-generated Querystring:
SELECT "column1", "column2" from "table"
After some research I found similar cases, but neither solution was acceptable. The problem here is, that I have to pass an Zend\Db\Sql\Select object, so querying the database with raw sql via $dbAdapter->query($sql) is not possible.
Is there maybe a way to disable quotation(in the database configuration, e.g.)?
Some tipps would be very appreciated. Thanks in advance