Hi,
Although I have asked this in another post (see ...SQLSTATE[HY000]... post)
I realised I had posted far too much information to get a response from busy
developers.

Short story:
For some reason I need to set the following PDO attribute for it to work
with my server configuration

$db = new PDO('mysql:host=localhost;dbname='.DBNAME, DBUSER, DBPASS);
$db->setAttribute (PDO::ATTR_EMULATE_PREPARES, true); 

Can someone tell me how to set the attribute using the Zend_Db factory or
corresponding Zend_Db_Adapter class? I've had a look at the Manual and API
and I originally assumed that I simply passed it to the Factory class via
the config array but this did not work.  I tried:

$config[ATTR_EMULATE_PREPARES] = true;
$config["ATTR_EMULATE_PREPARES"] = true;

But this did not work.

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Zend_Db---setting-PDO-attribute-tf3263396s16154.html#a9070979
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to