cvs: pear /DB_DataObject DataObject.php

From: Date: Tue, 25 Mar 2003 10:14:36 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9616@lists.php.net to get a copy of this message
alan_k Tue Mar 25 05:14:36 2003 EDT Modified files: /pear/DB_DataObject DataObject.php Log: fix sequences for non-mysql databases Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.71 pear/DB_DataObject/DataObject.php:1.72 --- pear/DB_DataObject/DataObject.php:1.71 Mon Mar 24 16:10:42 2003 +++ pear/DB_DataObject/DataObject.php Tue Mar 25 05:14:35 2003 @@ -20,7 +20,7 @@ * @package DB_DataObject * @category DB * - * $Id: DataObject.php,v 1.71 2003/03/24 21:10:42 arnaud Exp $ + * $Id: DataObject.php,v 1.72 2003/03/25 10:14:35 alan_k Exp $ */ /** @@ -594,7 +594,7 @@ if ( ($key = @$keys[0]) && ($dbtype != 'mysql') && (@$options['ignore_sequence_keys'] != 'ALL') && - (is_array(@$options['ignore_sequence_keys']) && + (!is_array(@$options['ignore_sequence_keys']) || @!in_array($this->__table,$options['ignore_sequence_keys'])) ) { @@ -602,7 +602,7 @@ if (!($seq = @$options['sequence_'. $this->__table])) { $seq = $this->__table; } - $this->$key = $__DB->nextId($this->__table); + $this->$key = $__DB->nextId($seq); } foreach($items as $k => $v) {

« previous php.pear.cvs (#9616) next »