Skip to content

Commit e06e563

Browse files
omachavezfjssilva
authored andcommitted
Bug#37705281 [Fix failing tests due to server changes]
Change-Id: I1cae3fc70461cb272efd8629a42dd57bfe25c8e2
1 parent 5284491 commit e06e563

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Fixed some tests due to incorrect implementation (WL16033).
44
- Updated third party dependencies (WL16852).
55
- Fixed bug Cannot Perform Database Migration using MySql.EntityFrameworkCore 9.0.0 (MySQL Bug #117258, Oracle Bug #37513445).
6+
- Fixed failing tests due to server changes (Oracle Bug #37705281).
67

78

89
9.2.0

MySQL.Data/src/SchemaProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ public virtual async Task<MySqlSchemaCollection> GetIndexesAsync(string[] restri
295295

296296
foreach (MySqlSchemaRow index in indexes.Rows)
297297
{
298-
if (1 != (connection.driver.Version.isAtLeast(8, 0, 1) ?
299-
(uint)index["SEQ_IN_INDEX"] :
300-
(long)index["SEQ_IN_INDEX"]))
298+
if (!index["SEQ_IN_INDEX"].Equals(Convert.ChangeType(1, index["SEQ_IN_INDEX"].GetType())))
301299
continue;
302300
if (restrictions != null && restrictions.Length == 4 &&
303301
restrictions[3] != null &&

MySQL.Data/tests/MySql.Data.Tests/Framework/netstandard2_0/GetSchemaTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,10 @@ c2 double GENERATED ALWAYS AS(c1 * 101 / 102) Stored COMMENT 'First Gen Col',
764764
{
765765
Assert.That(reader.Read(), "Matching the values");
766766
Assert.That(reader.GetInt32(0).Equals(1000), "Matching the values");
767-
Assert.That(reader.GetDouble(1).Equals(990.196078431), "Matching the values");
767+
if (Version >= new Version(9, 3, 0))
768+
Assert.That(reader.GetDouble(1).Equals(990.1961), "Matching the values");
769+
else
770+
Assert.That(reader.GetDouble(1).Equals(990.196078431), "Matching the values");
768771
Assert.That(reader.GetInt64(2).Equals(10000000), "Matching the values");
769772
}
770773

0 commit comments

Comments
 (0)