#31498 [Fbk->Csd]: Transactions broken with upgrade from 5.0.2 to 5.0.3
| From: | jj at intelequest dot com | Date: | Wed, 12 Jan 2005 16:49:24 +0000 |
| Subject: | #31498 [Fbk->Csd]: Transactions broken with upgrade from 5.0.2 to 5.0.3 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71969@lists.php.net to get a copy of this message | ||
ID: 31498
User updated by: jj at intelequest dot com
Reported By: jj at intelequest dot com
-Status: Feedback
+Status: Closed
Bug Type: MSSQL related
Operating System: Windows XP / 2k3
PHP Version: 5.0.3
New Comment:
Issue is corrected with PHP 5.0.4-dev (cli) (built: Jan 12 2005
10:23:43).
Previous Comments:
------------------------------------------------------------------------
[2005-01-12 09:06:33] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2005-01-11 22:46:19] jj at intelequest dot com
Description:
------------
When passing the "begin tran", "rollback tran" or "commit tran"
methods
the process dies on exectuing $this->query("begin tran");
If you port the platform back to 5.0.2 everything runs fine.
Reproduce code:
---------------
mssql_query('begin tran');
$result = mssql_query('insert into table_name (fname, lname) values
('joe', 'bob')');
if(!$result)
{
mssql_query('rollback tran');
}
mssql_query('commit tran');
Expected result:
----------------
To run the main query and rollback the transaction if the query failed
.
Actual result:
--------------
Stops on the begin tran and processes nothing else.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31498&edit=1