php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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 {
    $this->pushErrorHandling(PEAR_ERROR_RETURN);
    $result = $this->query("SELECT NEXTVAL('${seqname}')");
                                              ^^^^^^^

[...]
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-29 06:38 UTC] ssb@php.net
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. :)

Sorry.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC