Skip to content

Commit 2df6700

Browse files
committed
Update Connector/NET to 8.0.20.
1 parent f3c6439 commit 2df6700

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
173173
* [#88611](https://bugs.mysql.com/bug.php?id=88611): `MySqlCommand` can be executed even if it has “wrong” transaction
174174
* ~~[#88660](https://bugs.mysql.com/bug.php?id=88660): `MySqlClientFactory.Instance.CreateDataAdapter()` and `CreateCommandBuilder` return `null`~~
175175
* [#89085](https://bugs.mysql.com/bug.php?id=89085): `MySqlConnection.Database` not updated after `USE database;`
176-
* [#89159](https://bugs.mysql.com/bug.php?id=89159), [#97242](https://bugs.mysql.com/bug.php?id=97242): `MySqlDataReader` cannot outlive `MySqlCommand`
176+
* ~~[#89159](https://bugs.mysql.com/bug.php?id=89159), [#97242](https://bugs.mysql.com/bug.php?id=97242): `MySqlDataReader` cannot outlive `MySqlCommand`~~
177177
* [#89335](https://bugs.mysql.com/bug.php?id=89335): `MySqlCommandBuilder.DeriveParameters` fails for `JSON` type
178178
* [#89639](https://bugs.mysql.com/bug.php?id=89639): `ReservedWords` schema contains incorrect data
179179
* [#90086](https://bugs.mysql.com/bug.php?id=90086): `MySqlDataReader` is closed by an unrelated command disposal
@@ -200,7 +200,7 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
200200
* [#94760](https://bugs.mysql.com/bug.php?id=94760): `MySqlConnection.OpenAsync(CancellationToken)` doesn’t respect cancellation token
201201
* [#95348](https://bugs.mysql.com/bug.php?id=95348): Inefficient query when executing stored procedures
202202
* [#95436](https://bugs.mysql.com/bug.php?id=95436): Client doesn't authenticate with PEM certificate
203-
* [#95984](https://bugs.mysql.com/bug.php?id=95984): “Incorrect arguments to mysqld_stmt_execute” using prepared statement with `MySqlDbType.JSON`
203+
* ~~[#95984](https://bugs.mysql.com/bug.php?id=95984): “Incorrect arguments to mysqld_stmt_execute” using prepared statement with `MySqlDbType.JSON`~~
204204
* [#95986](https://bugs.mysql.com/bug.php?id=95986): “Incorrect integer value” using prepared statement with `MySqlDbType.Int24`
205205
* ~~[#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~~
206206
* [#96498](https://bugs.mysql.com/bug.php?id=96498): `WHERE` clause using `MySqlGeometry` as parameter finds no rows
@@ -210,7 +210,7 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
210210
* [#96717](https://bugs.mysql.com/bug.php?id=96717): Not compatible with MySQL Server 5.0
211211
* [#97067](https://bugs.mysql.com/bug.php?id=97067): Aggregate functions on BIT(n) columns return wrong result
212212
* [#97300](https://bugs.mysql.com/bug.php?id=97300): `GetSchemaTable()` returns table for stored procedure with output parameters
213-
* [#97448](https://bugs.mysql.com/bug.php?id=97448): Connecting fails if more than one IP is found in DNS for a named host
213+
* ~~[#97448](https://bugs.mysql.com/bug.php?id=97448): Connecting fails if more than one IP is found in DNS for a named host~~
214214
* [#97473](https://bugs.mysql.com/bug.php?id=97473): `MySqlConnection.Clone` discloses connection password
215215
* [#97738](https://bugs.mysql.com/bug.php?id=97738): Cannot use PEM files when account uses `require subject`
216216
* [#97872](https://bugs.mysql.com/bug.php?id=97872): `KeepAlive` in connection string throws exception on .NET Core

tests/MySqlConnector.Tests/MySqlConnector.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</ItemGroup>
3333

3434
<ItemGroup Condition=" '$(Configuration)' == 'Baseline' ">
35-
<PackageReference Include="MySql.Data" Version="8.0.19" />
35+
<PackageReference Include="MySql.Data" Version="8.0.20" />
3636
<Compile Remove="ByteBufferWriterTests.cs;CachedProcedureTests.cs;ConnectionTests.cs;FakeMySqlServer.cs;FakeMySqlServerConnection.cs;LoadBalancerTests.cs;MySqlExceptionTests.cs;NormalizeTests.cs;ServerVersionTests.cs;StatementPreparerTests.cs;TypeMapperTests.cs;UtilityTests.cs" />
3737
</ItemGroup>
3838

tests/SideBySide/PreparedCommandTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,7 @@ public static IEnumerable<object[]> GetInsertAndQueryData()
399399

400400
if (AppConfig.SupportsJson)
401401
{
402-
#if !BASELINE
403402
yield return new object[] { isPrepared, "JSON", "{\"test\": true}", MySqlDbType.JSON };
404-
#else
405-
// https://bugs.mysql.com/bug.php?id=95984
406-
yield return new object[] { isPrepared, "JSON", "{\"test\": true}", MySqlDbType.VarChar };
407-
#endif
408403
}
409404
}
410405
}

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.19" />
45+
<PackageReference Include="MySql.Data" Version="8.0.20" />
4646
</ItemGroup>
4747

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

tests/SideBySide/SslTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ public async Task ConnectSslBadClientCertificate()
145145
csb.CertificateFile = Path.Combine(AppConfig.CertsPath, "non-ca-client.pfx");
146146
csb.CertificatePassword = "";
147147
using var connection = new MySqlConnection(csb.ConnectionString);
148+
#if !BASELINE
148149
await Assert.ThrowsAsync<MySqlException>(async () => await connection.OpenAsync());
150+
#else
151+
await Assert.ThrowsAsync<AuthenticationException>(async () => await connection.OpenAsync());
152+
#endif
149153
}
150154

151155
[SkippableFact(ServerFeatures.KnownCertificateAuthority, ConfigSettings.RequiresSsl)]
@@ -169,13 +173,9 @@ public async Task ConnectSslTlsVersion()
169173
{
170174
using var connection = new MySqlConnection(AppConfig.ConnectionString);
171175
await connection.OpenAsync();
172-
#if BASELINE
173-
var expectedProtocol = AppConfig.SupportedFeatures.HasFlag(ServerFeatures.Tls11) ? SslProtocols.Tls11 : SslProtocols.Tls;
174-
#else
175176
var expectedProtocol = AppConfig.SupportedFeatures.HasFlag(ServerFeatures.Tls12) ? SslProtocols.Tls12 :
176177
AppConfig.SupportedFeatures.HasFlag(ServerFeatures.Tls11) ? SslProtocols.Tls11 :
177178
SslProtocols.Tls;
178-
#endif
179179
var expectedProtocolString = expectedProtocol == SslProtocols.Tls12 ? "TLSv1.2" :
180180
expectedProtocol == SslProtocols.Tls11 ? "TLSv1.1" : "TLSv1";
181181

0 commit comments

Comments
 (0)