From: techi at techi dot name Operating system: all PHP version: 5.2.10 PHP Bug Type: PDO related Bug description: PDO mysql does not support multiple inital queries
Description: ------------ When using intial SQL query with PDO::MYSQL_ATTR_INIT_COMMAND, only one query can be queried. More queries throws exception SQLSTATE[HY000]: General error: 2014 I am not sure, if this is bug or feature or some PDO limitation, but sometimes more than one initial query is needed Reproduce code: --------------- $pdo = new PDO( 'mysql:host=hostname;dbname=defaultDbName', 'username', 'password', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8;SET time_zone = 'Europe/Prague'") ); Actual result: -------------- SQLSTATE[HY000]: General error: 2014 -- Edit bug report at http://bugs.php.net/?id=48859&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48859&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48859&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48859&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48859&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48859&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48859&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48859&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48859&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48859&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48859&r=support Expected behavior: http://bugs.php.net/fix.php?id=48859&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48859&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48859&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48859&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48859&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48859&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48859&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48859&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48859&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48859&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48859&r=mysqlcfg