[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-cvs
Subject: [PEAR-CVS] =?utf-8?q?svn:_/pear/packages/DB=5FDataObject/trunk/DB/_DataObject.php?=
From: Alan_Knowles <alan_k () php ! net>
Date: 2012-04-26 9:14:42
Message-ID: svn-alan_k-1335431682-325455-933126001 () svn ! php ! net
[Download RAW message or body]
alan_k Thu, 26 Apr 2012 09:14:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=325455
Log:
we actually need to call begin manually, just calling autocommit does not actually do begin...
Changed paths:
U pear/packages/DB_DataObject/trunk/DB/DataObject.php
Modified: pear/packages/DB_DataObject/trunk/DB/DataObject.php
===================================================================
--- pear/packages/DB_DataObject/trunk/DB/DataObject.php 2012-04-26 07:47:38 UTC (rev 325454)
+++ pear/packages/DB_DataObject/trunk/DB/DataObject.php 2012-04-26 09:14:42 UTC (rev 325455)
@@ -2571,10 +2571,10 @@
if (strtoupper($string) == 'BEGIN') {
if ($_DB_driver == 'DB') {
$DB->autoCommit(false);
+ $DB->simpleQuery('BEGIN');
} else {
$DB->beginTransaction();
}
- // db backend adds begin anyway from now on..
return true;
}
if (strtoupper($string) == 'COMMIT') {
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic