    # File lib/active_record/connection_adapters/db2_adapter.rb, line 111
            def indexes(table_name, name = nil)
              tmp = {}
              schema = @connection_options[:schema] || ''
              with_statement do |stmt|
                stmt.indexes(table_name, schema).each do |t|
                  next unless t[5]
                  next if t[4] == 'SYSIBM' # Skip system indexes.
                  idx_name = t[5].downcase
                  col_name = t[8].downcase
                  if tmp.has_key?(idx_name)
                    tmp[idx_name].columns << col_name
                  else
                    is_unique = t[3] == 0
                    tmp[idx_name] = IndexDefinition.new(table_name, idx_name, is_unique, [col_name])
                  end
                end
              end
              tmp.values
            end