add a free to the use_result example test

This commit is contained in:
Roger Pack 2008-08-29 12:26:59 -06:00
parent 7a0ecc3497
commit b9e2abaa70
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ $count.times do |i|
if do_the_use_query_optimization if do_the_use_query_optimization
conn.query_with_result=false conn.query_with_result=false
result = conn.async_query(query) result = conn.async_query(query)
result.use_result.each_hash { |h| saved << h } res = result.use_result
res.each_hash { |h| saved << h }
res.free
else else
conn.async_query(query).each_hash {|h| saved << h } conn.async_query(query).each_hash {|h| saved << h }
end end