ID: 17499 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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
