|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-29 06:14 UTC] vegard at copyleft dot no
Found a typo in pgsql.php in DB.
Fundtion nextId() has var seqname in SELECT, should be seq_name:
function nextId($seq_name, $ondemand = true)
{
$seqname = $this->getSequenceName($seq_name);
$repeat = 0;
do {
$this->pushErrorHandling(PEAR_ERROR_RETURN);
$result = $this->query("SELECT NEXTVAL('${seqname}')");
^^^^^^^
[...]
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 05:00:01 2025 UTC |
Notice the first line in this function. If you want the sequence name DB uses to be without the _seq suffix, try this: $dbh->setOption('seqname_format', '%s');