select for update

2008-02-02 Thread ara.t.howard
does sequel support it? or something similar to AR#lock! ?? regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To

Re: select for update

2008-02-02 Thread Aman Gupta
The postgres adapter has the following: FOR_UPDATE = ' FOR UPDATE'.freeze FOR_SHARE = ' FOR SHARE'.freeze def select_sql(opts = nil) row_lock_mode = opts ? opts[:lock] : @opts[:lock] sql = super case row_lock_mode when :update sql