Module: ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::ODBC::Statement

Defined in:
lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb

Instance Method Summary collapse

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)


18
19
20
21
22
23
24
25
# File 'lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb', line 18

def finished?
  begin
    connected?
    false
  rescue *Database.parent_modules_error_exceptions
    true
  end
end