Re: DataObjects , postgresql and sequences
| From: | Xavier | Date: | Thu, 03 Apr 2003 17:09:22 +0000 |
| Subject: | Re: DataObjects , postgresql and sequences | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4628@lists.php.net to get a copy of this message | ||
Me again
Ok, i've fixed it
In fact,
i must supply a list ok tables in the ignore_sequence_keys config directive, otherwise it doesn't work...
is this a normal behaviour ?
in DataObject.php: Line 589
-----------------------------------------------------------------------
// big check for using sequences
if ( ($key = @$keys[0]) &&
($dbtype != 'mysql') &&
(@$options['ignore_sequence_keys'] != 'ALL') &&
(is_array(@$options['ignore_sequence_keys']) &&
@!in_array($this->__table,$options['ignore_sequence_keys']))
)
{
if (!($seq = @$options['sequence_'. $this->__table])) {
$seq = $this->__table;
}
$this->$key = $__DB->nextId($this->__table);
}^
-----------------------------------------------------------------------
Regards
Xavier