cvs: pear /DB/DB mysql.php
| From: | Daniel Convissor | Date: | Sat, 08 Apr 2006 12:51:00 +0000 |
| Subject: | cvs: pear /DB/DB mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39494@lists.php.net to get a copy of this message | ||
danielc Sat Apr 8 12:51:00 2006 UTC
Modified files:
/pear/DB/DB mysql.php
Log:
* In tableInfo(), fix order of params when calling mysql_query(). Bug 7343.
http://cvs.php.net/viewcvs.cgi/pear/DB/DB/mysql.php?r1=1.118&r2=1.119&diff_format=u
Index: pear/DB/DB/mysql.php
diff -u pear/DB/DB/mysql.php:1.118 pear/DB/DB/mysql.php:1.119
--- pear/DB/DB/mysql.php:1.118 Wed Mar 1 23:21:29 2006
+++ pear/DB/DB/mysql.php Sat Apr 8 12:51:00 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.118 2006/03/01 23:21:29 lsmith Exp $
+ * @version CVS: $Id: mysql.php,v 1.119 2006/04/08 12:51:00 danielc Exp $
* @link http://pear.php.net/package/DB
*/
@@ -932,8 +932,8 @@
* Probably received a table name.
* Create a result resource identifier.
*/
- $id = @mysql_query($this->connection,
- "SELECT * FROM $result LIMIT 0");
+ $id = @mysql_query("SELECT * FROM $result LIMIT 0",
+ $this->connection);
$got_string = true;
} elseif (isset($result->result)) {
/*