Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1319
 
1372
 
1372
 
mysql.php
_> 11 <?php
  22 /*
<> 3 -  $Id: mysql.php 1319 2007-03-05 20:43:07Z hpdl $
   3+  $Id: mysql.php 1372 2007-03-05 22:58:51Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2006 osCommerce
   8+  Copyright (c) 2007 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
     
 !
183183     }
  184184 
  185185     function nextID() {
<> 186 -      if ($id = @mysql_insert_id($this->link)) {
   186+      if ( is_numeric($this->nextID) ) {
   187+        $id = $this->nextID;
   188+        $this->nextID = null;
   189+
187190         return $id;
<>  191+      } elseif ($id = @mysql_insert_id($this->link)) {
   192+        return $id;
188193       } else {
  189194         $this->setError(mysql_error($this->link), mysql_errno($this->link));
  190195 
     
 !
201206     }
  202207 
  203208     function startTransaction() {
<>  209+      $this->logging_transaction = true;
   210+
204211       if ($this->use_transactions === true) {
  205212         return $this->simpleQuery('start transaction');
  206213       }
     
 !
209216     }
  210217 
  211218     function commitTransaction() {
<>  219+      if ($this->logging_transaction === true) {
   220+        $this->logging_transaction = false;
   221+        $this->logging_transaction_action = false;
   222+      }
   223+
212224       if ($this->use_transactions === true) {
  213225         return $this->simpleQuery('commit');
  214226       }
     
 !
217229     }
  218230 
  219231     function rollbackTransaction() {
<>  232+      if ($this->logging_transaction === true) {
   233+        $this->logging_transaction = false;
   234+        $this->logging_transaction_action = false;
   235+      }
   236+
<_ 220237       if ($this->use_transactions === true) {
  221238         return $this->simpleQuery('rollback');
  222239       }