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

From: Date: Wed, 29 Jan 2003 12:58:27 +0000
Subject: #21939 [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-12811@lists.php.net to get a copy of this message
ID: 21939 User updated by: vegard@copyleft.no Reported By: vegard@copyleft.no Status: Bogus Bug Type: PEAR related Operating System: GNU/Linux debian PHP Version: 4.3.0 New Comment: Hmm. Maybe I should sleep before I submit a bugreport. :) Sorry. Previous Comments: ------------------------------------------------------------------------ [2003-01-29 06:38:33] 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: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 (#12811) next »