Thanks to all, works as expected!

On Friday, August 9, 2013 4:39:12 PM UTC+2, Ceri Storey wrote:
>
>  (09/08/13 15:15), Jeremy Evans wrote:
>  
> On Friday, August 9, 2013 2:24:48 AM UTC-7, Ceri Storey wrote:
>
>>  (09/08/13 07:54), Petr Kaleta wrote:
>>  
>> Hey Ceri, 
>> thanks for your reply, but this solution will not work, as I described in 
>> my question. Because simply row with lower id can have higher published_at 
>> = published_at is totally random compared to id....
>>  
>> Ah, I see what you mean. You'd need something to generate the SQL: WHERE 
>> (published_at, id) >= ($prev_date, $prev_id), and i'm not sure offhand 
>> how you'd do that with Sequel itself. Jeremy? 
>>  
>
>    Sequel.expr([:published_at, :id]) >= [prev_date, prev_id]
>  
>
> Thanks! That's really useful!
>  

-- 
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.


Reply via email to