rowland / fb

Firebird Extension Library for Ruby
64 stars 36 forks source link

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

Closed zedalaye closed 13 years ago

zedalaye commented 13 years ago

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
rowland commented 13 years ago

I'm willing to consider patches.