Skip to content

Commit 2948161

Browse files
committed
Update baseline tests to MySql.Data 8.0.21.
1 parent a576962 commit 2948161

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
214214
* ~~[#91752](https://bugs.mysql.com/bug.php?id=91752): `00:00:00` is converted to `NULL` with prepared command~~
215215
* [#91753](https://bugs.mysql.com/bug.php?id=91753): Unnamed parameter not supported by `MySqlCommand.Prepare`
216216
* [#91754](https://bugs.mysql.com/bug.php?id=91754): Inserting 16MiB `BLOB` shifts it by four bytes when prepared
217-
* [#91770](https://bugs.mysql.com/bug.php?id=91770): `TIME(n)` column loses microseconds with prepared command
217+
* ~~[#91770](https://bugs.mysql.com/bug.php?id=91770): `TIME(n)` column loses microseconds with prepared command~~
218218
* [#92367](https://bugs.mysql.com/bug.php?id=92367): `MySqlDataReader.GetDateTime` and `GetValue` return inconsistent values
219219
* [#92465](https://bugs.mysql.com/bug.php?id=92465): “There is already an open DataReader” `MySqlException` thrown from `TransactionScope.Dispose`
220220
* [#92734](https://bugs.mysql.com/bug.php?id=92734): `MySqlParameter.Clone` doesn't copy all property values
@@ -234,18 +234,19 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
234234
* ~~[#95984](https://bugs.mysql.com/bug.php?id=95984): “Incorrect arguments to mysqld_stmt_execute” using prepared statement with `MySqlDbType.JSON`~~
235235
* [#95986](https://bugs.mysql.com/bug.php?id=95986): “Incorrect integer value” using prepared statement with `MySqlDbType.Int24`
236236
* ~~[#96355](https://bugs.mysql.com/bug.php?id=96355), [#96614](https://bugs.mysql.com/bug.php?id=96614): `Could not load file or assembly 'Renci.SshNet'` when opening connection~~
237-
* [#96498](https://bugs.mysql.com/bug.php?id=96498): `WHERE` clause using `MySqlGeometry` as parameter finds no rows
238-
* [#96499](https://bugs.mysql.com/bug.php?id=96499): `MySqlException` when inserting a `MySqlGeometry` value
237+
* ~~[#96498](https://bugs.mysql.com/bug.php?id=96498): `WHERE` clause using `MySqlGeometry` as parameter finds no rows~~
238+
* ~~[#96499](https://bugs.mysql.com/bug.php?id=96499): `MySqlException` when inserting a `MySqlGeometry` value~~
239239
* [#96500](https://bugs.mysql.com/bug.php?id=96500): `MySqlDataReader.GetFieldValue<MySqlGeometry>` throws `InvalidCastException`
240240
* [#96636](https://bugs.mysql.com/bug.php?id=96636): `MySqlConnection.Open()` slow under load when using SSL
241241
* [#96717](https://bugs.mysql.com/bug.php?id=96717): Not compatible with MySQL Server 5.0
242242
* [#97067](https://bugs.mysql.com/bug.php?id=97067): Aggregate functions on BIT(n) columns return wrong result
243-
* [#97300](https://bugs.mysql.com/bug.php?id=97300): `GetSchemaTable()` returns table for stored procedure with output parameters
243+
* ~~[#97300](https://bugs.mysql.com/bug.php?id=97300): `GetSchemaTable()` returns table for stored procedure with output parameters~~
244244
* ~~[#97448](https://bugs.mysql.com/bug.php?id=97448): Connecting fails if more than one IP is found in DNS for a named host~~
245245
* [#97473](https://bugs.mysql.com/bug.php?id=97473): `MySqlConnection.Clone` discloses connection password
246246
* [#97738](https://bugs.mysql.com/bug.php?id=97738): Cannot use PEM files when account uses `require subject`
247247
* [#97872](https://bugs.mysql.com/bug.php?id=97872): `KeepAlive` in connection string throws exception on .NET Core
248-
* [#98322](https://bugs.mysql.com/bug.php?id=98322): `new MySqlConnection(null)` throws `NullReferenceException`
248+
* ~~[#98322](https://bugs.mysql.com/bug.php?id=98322): `new MySqlConnection(null)` throws `NullReferenceException`~~
249249
* [#99091](https://bugs.mysql.com/bug.php?id=99091): Unexpected return value getting integer for `TINYINT(1)` column
250250
* [#99793](https://bugs.mysql.com/bug.php?id=99793): Prepared stored procedure command doesn't verify parameter types
251251
* [#100159](https://bugs.mysql.com/bug.php?id=100159): SQL with DateTime parameter returns String value
252+
* [#100208](https://bugs.mysql.com/bug.php?id=100208): `GetSchema("Procedures")` returns `ROUTINE_DEFINITION` of `"System.Byte[]"`

tests/SideBySide/ConnectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void DefaultConnectionStringIsEmpty()
7272
Assert.Equal("", connection.ConnectionString);
7373
}
7474

75-
[SkippableFact(Baseline = "https://bugs.mysql.com/bug.php?id=98322")]
75+
[Fact]
7676
public void InitializeWithNullConnectionString()
7777
{
7878
using var connection = new MySqlConnection(default(string));

tests/SideBySide/PreparedCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ public static IEnumerable<object[]> GetInsertAndQueryData()
386386
yield return new object[] { isPrepared, "BOOL", true, MySqlDbType.Int32 };
387387
#endif
388388

389-
#if !BASELINE
390389
// https://bugs.mysql.com/bug.php?id=91770
391390
yield return new object[] { isPrepared, "TIME(3)", TimeSpan.Zero.Subtract(new TimeSpan(15, 10, 34, 56, 789)), MySqlDbType.Time };
392391

392+
#if !BASELINE
393393
// https://bugs.mysql.com/bug.php?id=91751
394394
yield return new object[] { isPrepared, "YEAR", 2134, MySqlDbType.Year };
395395
#endif

tests/SideBySide/SideBySide.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</ItemGroup>
4343

4444
<ItemGroup Condition=" '$(Configuration)' == 'Baseline' ">
45-
<PackageReference Include="MySql.Data" Version="8.0.20" />
45+
<PackageReference Include="MySql.Data" Version="8.0.21" />
4646
</ItemGroup>
4747

4848
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1.2' ">

tests/SideBySide/StoredProcedureTests.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public async Task StoredProcedureNoResultSet(bool ignorePrepare)
143143
Assert.Equal("test value", cmd.Parameters[0].Value);
144144
}
145145

146-
[SkippableTheory(Baseline = "https://bugs.mysql.com/bug.php?id=97300")]
146+
[Theory]
147147
[InlineData(true)]
148148
[InlineData(false)]
149149
public async Task FieldCountForNoResultSet(bool ignorePrepare)
@@ -173,7 +173,7 @@ public async Task FieldCountForNoResultSet(bool ignorePrepare)
173173
}
174174

175175
#if !NETCOREAPP1_1_2
176-
[SkippableTheory(Baseline = "https://bugs.mysql.com/bug.php?id=97300")]
176+
[Theory]
177177
[InlineData(true)]
178178
[InlineData(false)]
179179
public async Task GetSchemaTableForNoResultSet(bool ignorePrepare)
@@ -193,9 +193,13 @@ public async Task GetSchemaTableForNoResultSet(bool ignorePrepare)
193193
using var reader = await cmd.ExecuteReaderAsync();
194194
Assert.False(await reader.ReadAsync());
195195
var table = reader.GetSchemaTable();
196+
#if BASELINE
197+
Assert.Null(table);
198+
#else
196199
Assert.NotNull(table);
197200
Assert.Empty(table.Rows);
198201
Assert.Empty(table.Columns);
202+
#endif
199203
Assert.False(await reader.NextResultAsync());
200204
}
201205
#endif
@@ -699,7 +703,12 @@ public void ProceduresSchema(string procedureName, string procedureType, string
699703
Assert.Equal(DBNull.Value, row["DTD_IDENTIFIER"]);
700704
else
701705
Assert.Equal(dtdIdentifier, ((string) row["DTD_IDENTIFIER"]).Split(' ')[0]);
706+
#if BASELINE
707+
// https://bugs.mysql.com/bug.php?id=100208
708+
Assert.NotEmpty(routineDefinition);
709+
#else
702710
Assert.Equal(routineDefinition, NormalizeSpaces((string) row["ROUTINE_DEFINITION"]));
711+
#endif
703712
Assert.Equal(isDeterministic, row["IS_DETERMINISTIC"]);
704713
Assert.Equal(dataAccess, ((string) row["SQL_DATA_ACCESS"]).Replace('_', ' '));
705714
}

0 commit comments

Comments
 (0)