[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: 2013-06-11 3:14:54
Message-ID: svn-alan_k-1370920494-330476-340053311 () svn ! php ! net
[Download RAW message or body]
alan_k Tue, 11 Jun 2013 03:14:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330476
Log:
fix #19973 - accept START TRANSACTION as an alias for BEGIN
Bug: http://pear.php.net/bugs/19973 (unknown)
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 2013-06-10 22:54:53 UTC (rev 330475)
+++ pear/packages/DB_DataObject/trunk/DB/DataObject.php 2013-06-11 03:14:54 UTC (rev 330476)
@@ -2526,7 +2526,10 @@
}
- if (strtoupper($string) == 'BEGIN') {
+ if (
+ strtoupper($string) == 'BEGIN' ||
+ strtoupper($string) == 'START TRANSACTION'
+ ) {
if ($_DB_driver == 'DB') {
$DB->autoCommit(false);
$DB->simpleQuery('BEGIN');
@@ -2535,6 +2538,7 @@
}
return true;
}
+
if (strtoupper($string) == 'COMMIT') {
$res = $DB->commit();
if ($_DB_driver == 'DB') {
--
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