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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 + 17 = ?
Subscribe to this entry?

 
 [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: Wed May 22 03:01:32 2024 UTC