class Avmtrf1::Oracle::Connection::Base

def query_with_block(sql, block)

def query_with_block(sql, block)
  cursor = query_without_block(sql)
  begin
    while (row = cursor.fetch_hash)
      block.call(row)
    end
  ensure
    cursor.close
  end
end