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

From: Date: Wed, 01 Mar 2006 23:16:54 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Reverse mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38816@lists.php.net to get a copy of this message
lsmith Wed Mar 1 23:16:54 2006 UTC Modified files: /pear/MDB2/MDB2/Driver/Reverse mysql.php Log: - handle qualified table names in tableInfo() http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/mysql.php?r1=1.44&r2=1.45&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysql.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.44 pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.45 --- pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.44 Wed Mar 1 12:15:33 2006 +++ pear/MDB2/MDB2/Driver/Reverse/mysql.php Wed Mar 1 23:16:54 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.44 2006/03/01 12:15:33 lsmith Exp $ +// $Id: mysql.php,v 1.45 2006/03/01 23:16:54 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -299,11 +299,10 @@ * Probably received a table name. * Create a result resource identifier. */ - $connection = $db->getConnection(); - if (PEAR::isError($connection)) { - return $connection; + $id = $db->_doQuery("SELECT * FROM $result LIMIT 0", false); + if (PEAR::isError($id)) { + return $id; } - $id = @mysql_list_fields($db->database_name, $result, $connection); $got_string = true; } elseif (MDB2::isResultCommon($result)) { /*

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