On Tuesday, February 5, 2013 9:42:21 PM UTC-8, Rob Hunter wrote: > > On Tuesday, 5 February 2013 04:08:57 UTC+11, Jeremy Evans wrote: >> >> Sequel 3.44.0 has been released and should be available on the gem >> mirrors. >> > [...] > >> = Other Improvements >> >> * Row fetching speed in the tinytds adapter has been increased by >> up to 60%. > > [...] > > > Thanks, Jeremy. > > We noticed an unusual build failure when we updated to Sequel 3.44.0 from > 3.43.0: results hashes didn't always have symbolized keys anymore, so we > were getting `nil`s when we expected numbers. > > It turned out to be related to the TinyTDS performance improvement -- the > new in-place key symbolizing works fine for single statements, but leaves > anything after the first result as string-based keys. > > >> connection["SELECT 1 as column_name; SELECT 2 as column_name; > SELECT 3 as column_name"].map(&:keys) > # => [[:column_name], ["column_name"], ["column_name"]] > > I've filed a Github issue < > https://github.com/jeremyevans/sequel/issues/611>. >
I've responded to this on GitHub, but just to follow up here, multiple statements in a single dataset is unsupported, you were relying on undefined behavior and happened to get lucky. I've listed some alternative ways of handling the situation in my response on GitHub, if you have questions, please ask here. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
