lib/arjdbc/teradata/adapter.rb
def _execute(sql, name = nil)
      if self.class.select?(sql)
        result = @connection.execute_query(sql)
        result.map! do |r|
          new_hash = {}
          r.each_pair do |k, v|
            new_hash.merge!({ k.downcase => v })
          end
          new_hash
        end if self.class.lowercase_schema_reflection
        result
      elsif self.class.insert?(sql)
        (@connection.execute_insert(sql) || last_insert_id(_table_name_from_insert(sql))).to_i
      else
        @connection.execute_update(sql)
      end
    end
def _execute(sql, name = nil)
      if self.class.select?(sql)
        result = @connection.execute_query(sql)
        result.map! do |r|
          new_hash = {}
          r.each_pair do |k, v|
            new_hash.merge!({ k.downcase => v })
          end
          new_hash
        end if self.class.lowercase_schema_reflection
        result
      elsif self.class.insert?(sql)
        (@connection.execute_insert(sql) || last_insert_id(_table_name_from_insert(sql))).to_i
      else
        @connection.execute_update(sql)
      end
    end
def _execute ( sql , name = nil ) if self . class . select? ( sql ) result = @connection . execute_query ( sql ) result . map! do | r | new_hash = { } r . each_pair do | k , v | new_hash . merge! ( { k . downcase => v } ) end new_hash end if self . class . lowercase_schema_reflection result elsif self . class . insert? ( sql ) ( @connection . execute_insert ( sql ) || last_insert_id ( _table_name_from_insert ( sql ) ) ) . to_i else @connection . execute_update ( sql ) end end
- native_sql_to_type
- active?
- reconnect!
- disconnect!
- exec_query
- exec_insert
- exec_delete
- exec_update
+ do_exec
- execute
- native_sql_to_type - active? - reconnect! - disconnect! - exec_query - exec_insert - exec_delete - exec_update + do_exec - execute