1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Changed default db_Fetch() type to MYSQL_ASSOC, this should reduce unnecessary data exchange. Be on the lookout for possible issues caused by this.

This commit is contained in:
mcfly
2009-01-18 17:05:08 +00:00
parent a5828e4dcd
commit 9b45d529ab

View File

@@ -9,8 +9,8 @@
* mySQL Handler * mySQL Handler
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
* $Revision: 1.36 $ * $Revision: 1.37 $
* $Date: 2009-01-10 04:39:54 $ * $Date: 2009-01-18 17:05:08 $
* $Author: mcfly_e107 $ * $Author: mcfly_e107 $
*/ */
@@ -44,7 +44,7 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s
* MySQL Abstraction class * MySQL Abstraction class
* *
* @package e107 * @package e107
* @version $Revision: 1.36 $ * @version $Revision: 1.37 $
* @author $Author: mcfly_e107 $ * @author $Author: mcfly_e107 $
*/ */
class db { class db {
@@ -549,10 +549,10 @@ class db {
* *
* @access public * @access public
*/ */
function db_Fetch($type = MYSQL_BOTH) { function db_Fetch($type = MYSQL_ASSOC) {
global $eTraffic; global $eTraffic;
if (!(is_int($type))) { if (!(is_int($type))) {
$type=MYSQL_BOTH; $type=MYSQL_ASSOC;
} }
$b = microtime(); $b = microtime();
$row = @mysql_fetch_array($this->mySQLresult,$type); $row = @mysql_fetch_array($this->mySQLresult,$type);