lib/github/sql.rb in github-ds-0.2.6 vs lib/github/sql.rb in github-ds-0.2.7
- old
+ new
@@ -295,10 +295,10 @@
when /\AUPDATE/i
@affected_rows = connection.update(query, "#{self.class.name} Update")
when /\ASELECT/i
# Why not execute or select_rows? Because select_all hits the query cache.
- @hash_results = connection.select_all(query, "#{self.class.name} Select")
+ @hash_results = connection.select_all(query, "#{self.class.name} Select").to_ary
@results = @hash_results.map(&:values)
else
@results = connection.execute(query, "#{self.class.name} Execute").to_a
end