Index: branches/5.2.x/core/kernel/db/db_load_balancer.php =================================================================== diff -u -N -r15240 -r15242 --- branches/5.2.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 15240) +++ branches/5.2.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 15242) @@ -1,6 +1,6 @@ chooseConnection($sql); + + return $conn->GetColIterator($sql, $key_field); + } + + /** * Queries db with $sql query supplied and returns rows selected if any, false * otherwise. Optional parameter $key_field allows to set one of the query fields * value as key in string array. Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r15239 -r15242 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15239) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15242) @@ -1,6 +1,6 @@ GetIterator($sql, $key_field, false, 'kMySQLQueryCol'); + } + + /** * Queries db with $sql query supplied * and returns rows selected if any, false * otherwise. Optional parameter $key_field @@ -1337,7 +1351,7 @@ if ( $this->valid() ) { mysql_data_seek($this->result, $this->position); - $this->rowData = mysql_fetch_array($this->result); + $this->rowData = mysql_fetch_assoc($this->result); } /*if ( !$this->valid() ) {