Hi

Just a quick note: it seems that PDO::MYSQL_ATTR_INIT_COMMAND is no longer
available in PHP 5.3 (RC 1).
I was doing a test with a small ZF app and it results in a fatal error: *Fatal
error*: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'. If you use this
now, sooner or later when upgrading to php 5.3 you will need to change your
code. Let's wait for php 5.3.0 final.

Cheers,
holo


2009/3/27 Eduard Bareev <edu...@bareev.ru>

> Hi, i am newbie here and i have some trouble:
>
> I want to pass PDO::MYSQL_ATTR_INIT_COMMAND value to DB adatper. But how to
> do this through Zend_Config_Xml ?
>
> What is possible to use instead of PDO::MYSQL_ATTR_INIT_COMMAND in xml ? :)
> And integer constant value (1002) is also not xml-copilant.
>
> <?xml version="1.0" encoding="utf-8"?>
> ........
>   <database>
>     <connection>
>       <adapter>pdo_mysql</adapter>
>       <params>
>         <host>192.168.1.177</host>
>         <dbname>bbdo</dbname>
>         <username>script</username>
>         <password>script_stupid</password>
>         <driver_options>
>           <PDO::MYSQL_ATTR_INIT_COMMAND>SET NAMES
> utf8</PDO::MYSQL_ATTR_INIT_COMMAND>
>         </driver_options>
>       </params>
>     </connection>
>   </database>
> .........
>
> Thank You!
>

Reply via email to