Skip to content

Commit 4624c7c

Browse files
authored
MariaDB supports index sort order
MariaDB supports index sort order since a few years now, so this commit lets ActiveRecord know. Upstream tracker: https://jira.mariadb.org/browse/MDEV-13756
1 parent f903206 commit 4624c7c

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
@@ -98,7 +98,7 @@ def supports_bulk_alter?
9898
end
9999

100100
def supports_index_sort_order?
101-
!mariadb? && database_version >= "8.0.1"
101+
mariadb? ? database_version >= "10.8.1" : database_version >= "8.0.1"
102102
end
103103

104104
def supports_expression_index?

0 commit comments

Comments
 (0)