Method: Qreport::Connection#_close

Defined in:
lib/qreport/connection.rb

#_closeObject



83
84
85
86
87
88
89
90
91
92
# File 'lib/qreport/connection.rb', line 83

def _close
  if @conn
    conn = @conn
    @conn = nil
    conn.close if @conn_owned
  end
ensure
  @conn_owned = false
  @transaction_nesting = 0
end