#21939 [Opn->Bgs]: Typo in pgsql.php: seqname should be seq_name

From: Date: Wed, 29 Jan 2003 12:38:34 +0000
Subject: #21939 [Opn->Bgs]: Typo in pgsql.php: seqname should be seq_name
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12806@lists.php.net to get a copy of this message
ID: 21939 Updated by: ssb@php.net Reported By: vegard@copyleft.no -Status: Open +Status: Bogus Bug Type: PEAR related Operating System: GNU/Linux debian PHP Version: 4.3.0 New Comment: 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'); Previous Comments: ------------------------------------------------------------------------ [2003-01-29 06:14:44] vegard@copyleft.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}')"); ^^^^^^^ [...] } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21939&edit=1

« previous php.pear.dev (#12806) next »