On Sep 19, 12:37 am, Vamsee M <[email protected]> wrote:
> HI,
>
> Anybody know how to write following expression without error ?
>
> .filter((:a > 0) & {:b => 0})
>
> in this case I am getting following error
>
> `>': comparison of Symbol with 0 failed
>
> If anybody have solution please reply.
On ruby 1.9, Sequel doesn't implement Symbol#>, since it is
implemented by ruby itself (to do so could break other ruby code).
You can use a virtual row block:
.filter{(a > 0) & {b => 0}}
See the virtual row documentation on the Sequel website if you would
like more details.
Thanks,
Jeremy
--
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.