cvs: pear /MDB2/MDB2/Driver/Manager fbsql.php mysql.php mysqli.php oci8.php pgsql.php

From: Date: Wed, 12 Oct 2005 18:23:15 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Manager fbsql.php mysql.php mysqli.php oci8.php pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35476@lists.php.net to get a copy of this message
lsmith Wed Oct 12 14:23:15 2005 EDT Modified files: /pear/MDB2/MDB2/Driver/Manager fbsql.php mysql.php mysqli.php oci8.php pgsql.php Log: - do not fix case in listUsers() http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/fbsql.php?r1=1.35&r2=1.36&ty=u Index: pear/MDB2/MDB2/Driver/Manager/fbsql.php diff -u pear/MDB2/MDB2/Driver/Manager/fbsql.php:1.35 pear/MDB2/MDB2/Driver/Manager/fbsql.php:1.36 --- pear/MDB2/MDB2/Driver/Manager/fbsql.php:1.35 Wed Oct 12 06:49:59 2005 +++ pear/MDB2/MDB2/Driver/Manager/fbsql.php Wed Oct 12 14:23:14 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.35 2005/10/12 10:49:59 lsmith Exp $ +// $Id: fbsql.php,v 1.36 2005/10/12 18:23:14 lsmith Exp $ // require_once 'MDB2/Driver/Manager/Common.php'; @@ -340,14 +340,7 @@ return $db; } - $result = $db->queryCol('SELECT "user_name" FROM information_schema.users'); - if (PEAR::isError($result)) { - return $result; - } - if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { - $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result); - } - return $result; + return $db->queryCol('SELECT "user_name" FROM information_schema.users'); } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mysql.php?r1=1.36&r2=1.37&ty=u Index: pear/MDB2/MDB2/Driver/Manager/mysql.php diff -u pear/MDB2/MDB2/Driver/Manager/mysql.php:1.36 pear/MDB2/MDB2/Driver/Manager/mysql.php:1.37 --- pear/MDB2/MDB2/Driver/Manager/mysql.php:1.36 Wed Oct 12 06:50:01 2005 +++ pear/MDB2/MDB2/Driver/Manager/mysql.php Wed Oct 12 14:23:14 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.36 2005/10/12 10:50:01 lsmith Exp $ +// $Id: mysql.php,v 1.37 2005/10/12 18:23:14 lsmith Exp $ // require_once 'MDB2/Driver/Manager/Common.php'; @@ -455,14 +455,7 @@ return $db; } - $result = $db->queryCol('SELECT DISTINCT USER FROM USER'); - if (PEAR::isError($result)) { - return $result; - } - if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { - $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result); - } - return $result; + return $db->queryCol('SELECT DISTINCT USER FROM USER'); } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mysqli.php?r1=1.23&r2=1.24&ty=u Index: pear/MDB2/MDB2/Driver/Manager/mysqli.php diff -u pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.23 pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.24 --- pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.23 Wed Oct 12 06:50:01 2005 +++ pear/MDB2/MDB2/Driver/Manager/mysqli.php Wed Oct 12 14:23:14 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.23 2005/10/12 10:50:01 lsmith Exp $ +// $Id: mysqli.php,v 1.24 2005/10/12 18:23:14 lsmith Exp $ // require_once 'MDB2/Driver/Manager/Common.php'; @@ -455,14 +455,7 @@ return $db; } - $result = $db->queryCol('SELECT DISTINCT USER FROM USER'); - if (PEAR::isError($result)) { - return $result; - } - if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { - $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result); - } - return $result; + return $db->queryCol('SELECT DISTINCT USER FROM USER'); } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/oci8.php?r1=1.40&r2=1.41&ty=u Index: pear/MDB2/MDB2/Driver/Manager/oci8.php diff -u pear/MDB2/MDB2/Driver/Manager/oci8.php:1.40 pear/MDB2/MDB2/Driver/Manager/oci8.php:1.41 --- pear/MDB2/MDB2/Driver/Manager/oci8.php:1.40 Wed Oct 12 13:19:47 2005 +++ pear/MDB2/MDB2/Driver/Manager/oci8.php Wed Oct 12 14:23:14 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.40 2005/10/12 17:19:47 lsmith Exp $ +// $Id: oci8.php,v 1.41 2005/10/12 18:23:14 lsmith Exp $ require_once 'MDB2/Driver/Manager/Common.php'; @@ -473,16 +473,7 @@ } $query = 'SELECT username FROM sys.all_users'; - $result = $db->queryCol($query); - if (PEAR::isError($result)) { - return $result; - } - if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE - && $db->options['field_case'] == CASE_LOWER - ) { - $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result); - } - return $result; + return $db->queryCol($query); } // }}} // {{{ listViews() http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/pgsql.php?r1=1.30&r2=1.31&ty=u Index: pear/MDB2/MDB2/Driver/Manager/pgsql.php diff -u pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.30 pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.31 --- pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.30 Wed Oct 12 13:19:47 2005 +++ pear/MDB2/MDB2/Driver/Manager/pgsql.php Wed Oct 12 14:23:14 2005 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.30 2005/10/12 17:19:47 lsmith Exp $ +// $Id: pgsql.php,v 1.31 2005/10/12 18:23:14 lsmith Exp $ require_once 'MDB2/Driver/Manager/Common.php'; @@ -298,12 +298,6 @@ $result = $result2->fetchCol(); $result2->free(); - if (PEAR::isError($result)) { - return $result; - } - if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { - $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result); - } return $result; }

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