lib/smart_session/mysql2.rb
# retrieve the session table connection and get the 'raw' Mysql connection from it
retrieve the session table connection and get the 'raw' Mysql connection from it
retrieve the session table connection and get the ' raw ' Mysql connection from it
def query(sql)
        connection = session_connection
        begin
          connection.query sql
        rescue Exception => e
          message = "#{e.class.name}: #{e.message}: #{sql}"
          raise ActiveRecord::StatementInvalid, message
        end
      end
def query ( sql ) connection = session_connection begin connection . query sql rescue Exception => e message = "#{e.class.name}: #{e.message}: #{sql}" raise ActiveRecord :: StatementInvalid , message end end
retrieve the session table connection and get the 'raw' Mysql connection from it
retrieve the session table connection and get the ' raw ' Mysql connection from it
sql