While trying to get a code base ported from Zend PHP to Quercus, I came across the following error:
PDO::MYSQL_ATTR_INIT_COMMAND is an unknown constant
The point of this particular option is to provide a command (as a string) which is guaranteed to be fired on any newly created connection before it is handed off to the application. In our case, we are using it to enforce UTF8 encoding on a per-client basis via the command "USE NAMES UTF8".
Currently, I am trying to keep the application's database code intact, avoiding quercus-specific changes changes for the most part. I can think of one or two ways to work around this shortcoming but if I may inquire: what is the general recommendation in this case?