Index: kernel/db/db_load_balancer.php =================================================================== --- kernel/db/db_load_balancer.php (revision 15239) +++ kernel/db/db_load_balancer.php (working copy) @@ -536,6 +536,25 @@ } /** + * Returns iterator to a recordset, produced from running $sql query Queries db with $sql query supplied and returns kMySQLQuery iterator + * or false in case of error. Optional parameter $key_field allows to + * set one of the query fields value as key in string array. + * + * @param string $sql + * @param string $key_field + * @param bool $no_debug + * @param string $iterator_class + * @return kMySQLQuery|bool + * @access public + */ + public function GetIterator($sql, $key_field = null, $no_debug = false, $iterator_class = 'kMySQLQuery') + { + $conn =& $this->chooseConnection($sql); + + return $conn->GetIterator($sql, $key_field, $no_debug, $iterator_class); + } + + /** * Performs sql query, that will change database content * * @param string $sql