Re: cvs: pear /MDB2 MDB2.php

From: Date: Sun, 16 Oct 2005 20:49:44 +0000
Subject: Re: cvs: pear /MDB2 MDB2.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35605@lists.php.net to get a copy of this message
Lukas Smith wrote:
lsmith Fri Oct 14 18:39:03 2005 EDT
  Modified files:                  /pear/MDB2	MDB2.php   Log:
- quote sequence name http://cvs.php.net/diff.php/pear/MDB2/MDB2.php?r1=1.128&r2=1.129&ty=u Index: pear/MDB2/MDB2.php diff -u pear/MDB2/MDB2.php:1.128 pear/MDB2/MDB2.php:1.129 --- pear/MDB2/MDB2.php:1.128 Fri Oct 14 17:21:48 2005 +++ pear/MDB2/MDB2.php Fri Oct 14 18:39:02 2005 @@ -43,7 +43,7 @@
 // | Author: Lukas Smith <smith@pooteeweet.org>                           |
// +----------------------------------------------------------------------+ // -// $Id: MDB2.php,v 1.128 2005/10/14 21:21:48 quipo Exp $ +// $Id: MDB2.php,v 1.129 2005/10/14 22:39:02 lsmith Exp $ // /** @@ -2388,8 +2388,8 @@
      */
     function getSequenceName($sqn)
     {
-        return sprintf($this->options['seqname_format'],
-            preg_replace('/[^a-z0-9_]/i', '_', $sqn));
+        return $this->quoteIdentifier(sprintf($this->options['seqname_format'],
+            preg_replace('/[^a-z0-9_]/i', '_', $sqn)));
     }
      // }}}
why? The method is called "getSequenceName", not "getQuotedSequenceName"... I'm gonna revert this one, please quote the seq name outside this method and only when needed. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

« previous php.pear.cvs (#35605) next »