cvs: pear /MDB2/MDB2/Driver/Manager Common.php

From: Date: Wed, 12 Oct 2005 18:36:03 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Manager Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35477@lists.php.net to get a copy of this message
quipo Wed Oct 12 14:36:03 2005 EDT Modified files: /pear/MDB2/MDB2/Driver/Manager Common.php Log: case-insensitive comparison in _isSequenceName() http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/Common.php?r1=1.22&r2=1.23&ty=u Index: pear/MDB2/MDB2/Driver/Manager/Common.php diff -u pear/MDB2/MDB2/Driver/Manager/Common.php:1.22 pear/MDB2/MDB2/Driver/Manager/Common.php:1.23 --- pear/MDB2/MDB2/Driver/Manager/Common.php:1.22 Thu Oct 6 04:52:03 2005 +++ pear/MDB2/MDB2/Driver/Manager/Common.php Wed Oct 12 14:36:02 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.22 2005/10/06 08:52:03 lsmith Exp $ +// $Id: Common.php,v 1.23 2005/10/12 18:36:02 quipo Exp $ // /** @@ -122,7 +122,7 @@ $seq_pattern = '/^'.preg_replace('/%s/', '([a-z0-9_]+)', $db->options['seqname_format']).'$/i'; $seq_name = preg_replace($seq_pattern, '\\1', $sqn); - if ($seq_name && $sqn == $db->getSequenceName($seq_name)) { + if ($seq_name && !strcasecmp($sqn, $db->getSequenceName($seq_name))) { return $seq_name; } return false; @@ -613,4 +613,4 @@ } } -?> +?> \ No newline at end of file

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