Skip to content

Commit 8e06900

Browse files
authored
Merge pull request rails#26785 from yahonda/diag26774
Support index.length for MySQL 8.0.0-dmr
2 parents 1167df3 + 32fc033 commit 8e06900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def indexes(table_name, name = nil) #:nodoc:
388388
end
389389

390390
indexes.last.columns << row[:Column_name]
391-
indexes.last.lengths.merge!(row[:Column_name] => row[:Sub_part]) if row[:Sub_part]
391+
indexes.last.lengths.merge!(row[:Column_name] => row[:Sub_part].to_i) if row[:Sub_part]
392392
end
393393
end
394394

0 commit comments

Comments
 (0)