Ok I see that this works, and is much nicer...
DB[:user].filter(:id => 1).update(:experience => :experience + v}
=> UPDATE "user" SET "experience" = ("experience" + 100) WHERE ("id" =
1)
On Jun 29, 1:52 pm, Jim Morris <[EMAIL PROTECTED]> wrote:
> I use this extensively...
>
> DB[:user].filter(:id => 1).update{:experience << :experience + v}
>
> This allows me to increment the experience column.
>
> I now get this warning...
>
> ParseTree filters are deprecated and will be removed in Sequel 2.2
>
> So what would be the equivalent in Sequel 2.2?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---