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)


9
10
11
12
13
14
15
16
# File 'lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb', line 9

def finished?
  begin
    connected?
    false
  rescue ::ODBC::Error
    true
  end
end