|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21939 Typo in pgsql.php: seqname should be seq_name
Submitted: 2003-01-29 06:14 UTC Modified: 2003-01-29 06:58 UTC
From: vegard at copyleft dot no Assigned:
Status: Not a bug Package: PEAR related
PHP Version: 4.3.0 OS: GNU/Linux debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vegard at copyleft dot no
New email:
PHP Version: OS:


 [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 {
    $result = $this->query("SELECT NEXTVAL('${seqname}')");



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-29 06:38 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');

 [2003-01-29 06:58 UTC] vegard at copyleft dot no
Hmm. Maybe I should sleep before I submit a bugreport. :)

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 00:01:26 2023 UTC