rowland/fb

Get cursor's name to run update where current of queries

zedalaye opened this issue · 1 comments

It would be efficient to have a name attribute for the Fb::Cursor object so that we can run such queries :

cnx.execute('select * from table for update with lock') do |cursor|
  cnx.execute("update table set... where current of #{cursor.name}")
end

I'm willing to consider patches.