On Friday, June 27, 2014 7:05:21 PM UTC-4, Jeremy Evans wrote:
But I not getting anywhere with where clauses.
>>
>> query = [[:select, :NodeId], [:where, :Timestamp, :"=>", :"60"]]
>>
>
> That's because where(:Timestamp, :=>, :"60") is not valid Sequel code. Is
> there a reason you expected that to work?
>
I wasn't particularly expecting it to work, but it was less wrong than
prior attempts that are too embarrassing to post here ;-)
> You should probably use a hash:
>
> [:where, {:Timestamp => 60}]
>
I would never have hit on that myself, but it makes perfect sense now that
you mention it. Thanks!
Cheers,
Andreas
--
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/d/optout.