php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22171 Support of Transaction Control Statements
Submitted: 2003-02-11 11:40 UTC Modified: 2003-02-14 05:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: werner dot schuermann at cneweb dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.0 OS: NT2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: werner dot schuermann at cneweb dot de
New email:
PHP Version: OS:

 

 [2003-02-11 11:40 UTC] werner dot schuermann at cneweb dot de
I?m using MySQL Version 4.0.8 Gamma Release and PHP 4.3. There is the transaction control implemented. 
Now I tried to use the statements "set autocommit=0, begin, commit or rollback" within a php-script. At runtime I have got an error: Notice: Use of undefined constant BEGIN - assumes 'BEGIN' in test.php on line xx.
The control statements in MySQL are correctly functioning !
I think the transaction control statements aren't supported in PHP yet.
Are you able to advice me ?
Many Thanks,
Werner Schuermann

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 16:55 UTC] georg@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Could you please provide a short sample of code?!
(only query related part of code)
 [2003-02-14 05:16 UTC] hholzgra@php.net
you have to use mysql_query("begin");
not mysql_query(begin);

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 16:01:30 2024 UTC