On May 6, 9:38 pm, Jeremy Evans <[email protected]> wrote: > > You didn't post your code, but from the backtrace it looks like you > are doing the equivalent of: > > Model.each do |x| > DB[:table].all do |x| > end > end > > You can't do that in Sequel on most adapters, because the same > connection is used for both each calls. So you are attempting to use > the connection for a new query without finishing use of the other > query. You either have to use all for the outer level: > > Model.all do |x| > DB[:table].all do |x| > end > end >
Hi Jeremy, You were right. Changing the outer call to fetch all rows fixed the problem. Still have 6/339 RSpec examples failing with TinyTDS (for different reasons). Will investigate them and post results. Thanks, Rohit -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
