cvs: pear /DB package.xml /DB/DB mysql.php
| From: | Lukas Smith | Date: | Wed, 01 Mar 2006 23:21:30 +0000 |
| Subject: | cvs: pear /DB package.xml /DB/DB mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38817@lists.php.net to get a copy of this message | ||
lsmith Wed Mar 1 23:21:30 2006 UTC
Modified files:
/pear/DB/DB mysql.php
/pear/DB package.xml
Log:
fixed handling of fully qualified table names in tableInfo(). Bug 4272.
http://cvs.php.net/viewcvs.cgi/pear/DB/DB/mysql.php?r1=1.117&r2=1.118&diff_format=u
Index: pear/DB/DB/mysql.php
diff -u pear/DB/DB/mysql.php:1.117 pear/DB/DB/mysql.php:1.118
--- pear/DB/DB/mysql.php:1.117 Tue Mar 29 15:03:26 2005
+++ pear/DB/DB/mysql.php Wed Mar 1 23:21:29 2006
@@ -20,7 +20,7 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: mysql.php,v 1.117 2005/03/29 15:03:26 danielc Exp $
+ * @version CVS: $Id: mysql.php,v 1.118 2006/03/01 23:21:29 lsmith Exp $
* @link http://pear.php.net/package/DB
*/
@@ -932,8 +932,8 @@
* Probably received a table name.
* Create a result resource identifier.
*/
- $id = @mysql_list_fields($this->dsn['database'],
- $result, $this->connection);
+ $id = @mysql_query($this->connection,
+ "SELECT * FROM $result LIMIT 0");
$got_string = true;
} elseif (isset($result->result)) {
/*
http://cvs.php.net/viewcvs.cgi/pear/DB/package.xml?r1=1.192&r2=1.193&diff_format=u
Index: pear/DB/package.xml
diff -u pear/DB/package.xml:1.192 pear/DB/package.xml:1.193
--- pear/DB/package.xml:1.192 Wed Mar 1 22:59:43 2006
+++ pear/DB/package.xml Wed Mar 1 23:21:29 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<package version="1.0">
- <!-- $Id: package.xml,v 1.192 2006/03/01 22:59:43 lsmith Exp $ -->
+ <!-- $Id: package.xml,v 1.193 2006/03/01 23:21:29 lsmith Exp $ -->
<name>DB</name>
<summary>Database Abstraction Layer</summary>
<description>
@@ -79,6 +79,9 @@
Should resolve FreeTDS and/or Sybase issues discussed
in bug 1525, et al.
+mysql:
+* fixed handling of fully qualified table names in tableInfo(). Bug 4272.
+
mysqli:
* worked around an issue in 'len' handling of tableInfo(). There is a bug in
ext/mysqli or the mysqli docs. Bug 5680.