On Saturday, April 8, 2017 at 3:53:40 PM UTC-7, Tiago Cardoso wrote:
>
> In the ".first" example, couldn't you just get away with coerce it into an 
> integer? 
>

No.  Dataset#first is a little special in that it recognizes integer 
arguments and treats that as a limit, but in general like other methods 
that accept filter arguments, passing a string as the first argument treats 
the string as literal SQL.  However, this applies to a other cases, like 
where you expect the argument to be a hash and it ends up being a string.

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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to