From f94a7f7c4f809a55f424b4610b673bb58b75ab1d Mon Sep 17 00:00:00 2001 From: Nemirtingas <9432037+Nemirtingas@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:38:42 +0200 Subject: [PATCH] Update SchemaProvider.cs to fix MariaDB --- MySQL.Data/src/SchemaProvider.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MySQL.Data/src/SchemaProvider.cs b/MySQL.Data/src/SchemaProvider.cs index f56b8a78d..c3ec7703f 100644 --- a/MySQL.Data/src/SchemaProvider.cs +++ b/MySQL.Data/src/SchemaProvider.cs @@ -295,9 +295,7 @@ public virtual async Task GetIndexesAsync(string[] restri foreach (MySqlSchemaRow index in indexes.Rows) { - if (1 != (connection.driver.Version.isAtLeast(8, 0, 1) ? - (uint)index["SEQ_IN_INDEX"] : - (long)index["SEQ_IN_INDEX"])) + if (!index["SEQ_IN_INDEX"].Equals(1)) continue; if (restrictions != null && restrictions.Length == 4 && restrictions[3] != null &&