Bug #77031 [NEW]: ATTR_EMULATE_PREPARES and multiquery
From: giolaza at gmail dot com
Operating system: Windows, Linux
PHP version: 7.2.11
Package: PDO MySQL
Bug Type: Bug
Bug description:ATTR_EMULATE_PREPARES and multiquery
Description:
------------
PDO::ATTR_EMULATE_PREPARES and connect->quety('UPDATE 1 SLQ; UPDATE 2
SQL') problem
Test script:
---------------
$this->connect->setAttribute(\PDO::ATTR_EMULATE_PREPARES,false);
$q2=[];
$q2[]='UPDATE users set
has_trialPeriod=0,last_changedBalance=1539846901 where id=1';
$q2[]='UPDATE users set
balance_usd=(balance_usd-99990000) where
id=1';
$q=implode(';', $q2);
$this->connection->query($q);
got err
Actual result:
--------------
GOT SQL ERR
--
Edit bug report at https://bugs.php.net/bug.php?id=77031&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77031&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77031&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77031&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77031&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77031&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77031&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77031&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77031&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77031&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77031&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77031&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77031&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77031&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77031&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77031&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77031&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77031&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77031&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77031&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77031&r=mysqlcfg
Thread (1 message)
- giolaza at gmail dot com