Hi, that was unexpected for me too, yeeh sequel needs better documentation because all sections on http://sequel.rubyforge.org/documentation.html are not so clear. GitHub Wiki will be the best solution if it will be transfered there ;)
On Apr 29, 8:59 pm, bizzz <[email protected]> wrote: > Oooh! That was unexpected! > Thank you, Jeremy! > > > You are calling Hash#update, which has no effect on the database. If > > that is the query you want: > > > DB[:tmp].filter(:id=>id).update(:done=>1) > > > That calls Dataset#update instead of Hash#update as Dataset#filter > > returns a dataset, as opposed to Dataset#[] which returns a hash. > > > 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 > > athttp://groups.google.com/group/sequel-talk?hl=en. > > -- > 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 > athttp://groups.google.com/group/sequel-talk?hl=en. -- 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.
