On Thursday, June 14, 2018 at 1:52:17 AM UTC-7, d...@taric.es wrote: > > Hi everybody. > > I have found a little (and annoying) bug in Dataset#first method. If I do > this query: > > FooModel.first({}) > > It works first and second time, but fails third. Sequel is trying to cache > petition without testing if search filter is empty or not. I think it > should test that condition. Now I am testing in my code. >
Thanks for the report. This was a bug in #first, and also in #where_all, #where_each, and #where_single_value. I've just committed a fix for the issue: https://github.com/jeremyevans/sequel/commit/2622077e57ac884538b2bd3bbae3d2ff6b02adb9 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 sequel-talk+unsubscr...@googlegroups.com. To post to this group, send email to sequel-talk@googlegroups.com. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.