Re: execute_select without a block?

2008-02-12 Thread Aman Gupta
On Feb 12, 7:42 am, Joseph McDonald [EMAIL PROTECTED] wrote: Hi, I was wondering if execute_select could return the results even if no block is given.  Right now, this works: @DB.execute_select(sql) {  |rows|   rows.each do |row|     puts row: #{row}   end } This doesn't (I think it

execute_select without a block?

2008-02-12 Thread Joseph McDonald
Hi, I was wondering if execute_select could return the results even if no block is given. Right now, this works: @DB.execute_select(sql) { |rows| rows.each do |row| puts row: #{row} end } This doesn't (I think it used to): rows = @DB.execute_select(sql) rows.each do |row| puts row: