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

From: Date: Sat, 04 Sep 2004 22:14:56 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Manager mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23627@lists.php.net to get a copy of this message
lsmith Sat Sep 4 18:14:56 2004 EDT Modified files: /pear/MDB2/MDB2/Driver/Manager mysql.php Log: - improved handling of MDB2_PORTABILITY_LOWERCASE in all the reverse http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mysql.php?r1=1.11&r2=1.12&ty=u Index: pear/MDB2/MDB2/Driver/Manager/mysql.php diff -u pear/MDB2/MDB2/Driver/Manager/mysql.php:1.11 pear/MDB2/MDB2/Driver/Manager/mysql.php:1.12 --- pear/MDB2/MDB2/Driver/Manager/mysql.php:1.11 Thu Aug 5 12:26:26 2004 +++ pear/MDB2/MDB2/Driver/Manager/mysql.php Sat Sep 4 18:14:56 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.11 2004/08/05 16:26:26 lsmith Exp $ +// $Id: mysql.php,v 1.12 2004/09/04 22:14:56 lsmith Exp $ // require_once 'MDB2/Driver/Manager/Common.php'; @@ -477,6 +477,9 @@ if (!$this->_isSequenceName($table_names[$i])) $tables[] = $table_names[$i]; } + if ($db->options['portability'] & MDB2_PORTABILITY_LOWERCASE) { + $tables = array_flip(array_change_key_case(array_flip($tables), CASE_LOWER)); + } return $tables; } @@ -605,6 +608,9 @@ $indexes[] = $indexes_all[$index]; $found[$indexes_all[$index]] = true; } + } + if ($db->options['portability'] & MDB2_PORTABILITY_LOWERCASE) { + $indexes = array_flip(array_change_key_case(array_flip($indexes), CASE_LOWER)); } return $indexes; }

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