So, I upgraded to ZF 2.1.4, and I was greeted with the message: Attempting to quote a value in Zend\Db\Adapter\Platform\Mysql without extension/driver support can introduce security vulnerabilities in a production environment
My dbadapter is defined as such:
return array( 'service_manager' => array( 'factories' => array( 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory', ) ), 'db' => array( 'driver' => 'pdo_mysql', 'driver_options' => array( PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'" ), 'dsn' => 'mysql:dbname=test;host=192.168.1.8', 'username' => 'test', 'password' => 'test', ) );
I want to quote the following:
$order = 'field(ce.id, ' . $this->_db->getPlatform()->quoteValueList($ids) . ')'; $select->order(new Expression($order));
How can I do it? I got the impression that pdo_mysql has driver support for specifying values.
mobius
source share