cvs: pear /DB_DataObject/DataObject Generator.php

From: Date: Mon, 16 Oct 2006 02:20:17 +0000
Subject: cvs: pear /DB_DataObject/DataObject Generator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42587@lists.php.net to get a copy of this message
alan_k Mon Oct 16 02:20:17 2006 UTC Modified files: /pear/DB_DataObject/DataObject Generator.php Log: fix bug #8736 - auto_increment check for MDB2 backend http://cvs.php.net/viewvc.cgi/pear/DB_DataObject/DataObject/Generator.php?r1=1.121&r2=1.122&diff_format=u Index: pear/DB_DataObject/DataObject/Generator.php diff -u pear/DB_DataObject/DataObject/Generator.php:1.121 pear/DB_DataObject/DataObject/Generator.php:1.122 --- pear/DB_DataObject/DataObject/Generator.php:1.121 Mon Sep 25 08:14:43 2006 +++ pear/DB_DataObject/DataObject/Generator.php Mon Oct 16 02:20:16 2006 @@ -15,7 +15,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Generator.php,v 1.121 2006/09/25 08:14:43 alan_k Exp $ + * @version CVS: $Id: Generator.php,v 1.122 2006/10/16 02:20:16 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -610,7 +610,9 @@ // only use primary key or nextval(), cause the setFrom blocks you setting all key items... // if no keys exist fall back to using unique //echo "\n{$t->name} => {$t->flags}\n"; - if (preg_match("/(auto_increment|nextval\()/i",rawurldecode($t->flags))) { + if (preg_match("/(auto_increment|nextval\()/i",rawurldecode($t->flags)) + || (isset($t->autoincrement) && ($t->autoincrement === true))) { + // native sequences = 2 if ($write_ini) { $keys_out_primary .= "{$t->name} = N\n";

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