Bug #17499 Updated: multiple sql statements query doesn't work
| From: | mfischer@php.net | Date: | Wed, 29 May 2002 05:00:03 +0000 |
| Subject: | Bug #17499 Updated: multiple sql statements query doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8820@lists.php.net to get a copy of this message | ||
ID: 17499
Updated by: mfischer@php.net
Reported By: dchiod@inwind.it
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: win32
PHP Version: 4.2.0
New Comment:
You can only issue ONE sql statement at a time.
Previous Comments:
------------------------------------------------------------------------
[2002-05-28 20:36:29] dchiod@inwind.it
try to execute this SQL with a single connection->execute(), but i
can't get it work (same SQL is executed correctly in MySQL using other
interfaces).
To be sure it's the same SQL I display it with a echo in php, and
copy/paste it in my MySQL frontend (I use Mascon).
values in SQL are only for example.
"lock tables attiDeMinimis write; select @progr := numero from
attiDeMinimis WHERE id=0; select @progr := @progr + 1; insert
attiDeMinimis values
(@progr,"test","2002/05/29","DE","CO","",1000,1000,NULL,4);
UPDATE
attiDeMinimis SET numero = @progr WHERE id=0; unlock tables;"
multiple statements are ok with mssql.
reply from phplens.com:
This is a php mysql client library issue i suspect. If you are not
happy with this, perhaps you can submit a bug report to
http://bugs.php.net
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17499&edit=1