On Thursday, September 19, 2013 4:30:54 AM UTC-7, Michael Lang wrote: > > Thanks, Jeremy > > The back ticks worked. I also tried > > sum([['192.168.50.', :ip_totlen]].case(0, > left(BIN_TO_IPV4(:ip_saddr),11))).as(:outgoing_bytes), > > and got the error that #case wasn't a method of the Array class, so your > comment about core classes no longer being extended answers that. > > Glancing through the documentation, I see "Sequel.case..." is now the way, > so I think I need to give the top-level documentation a fresh read. I know > enough Sequel to google specifically and I landed up on the StringLiteral > page: http://sequel.rubyforge.org/rdoc/classes/Sequel/LiteralString.html > > This page and many others like it probably should be prefaced with a note > to load core extensions. >
Actually, the documentation should be updated to reference Sequel.lit instead of String#lit, I'll take care of this shortly. If there are other instances in the main RDoc that reference core extension methods, they should be updated as well. 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. For more options, visit https://groups.google.com/groups/opt_out.
