Skip to content

Commit 957dd42

Browse files
committed
Update MySql.Data to 8.3.0.
Run CI integration tests against MySQL Server 8.3.
1 parent 7303118 commit 957dd42

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

.ci/docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ OMIT_FEATURES=$3
2525
MYSQL_EXTRA=
2626
MYSQL=mysql
2727

28-
if [[ "$IMAGE" == mysql:8.0 || "$IMAGE" == mysql:8.2 ]]; then
28+
if [[ "$IMAGE" == mysql:8.0 || "$IMAGE" == mysql:8.3 ]]; then
2929
MYSQL_EXTRA='--default-authentication-plugin=mysql_native_password'
3030
fi
3131
if [[ "$IMAGE" == mariadb* ]]; then

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
1717
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
1818
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
19-
<PackageVersion Include="MySql.Data" Version="8.2.0" />
19+
<PackageVersion Include="MySql.Data" Version="8.3.0" />
2020
<PackageVersion Include="NLog" Version="4.5.0" />
2121
<PackageVersion Include="Serilog" Version="2.6.0" />
2222
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ jobs:
233233
image: 'mysql:8.0'
234234
connectionStringExtra: ''
235235
unsupportedFeatures: 'Ed25519,StreamingResults,Tls11,ZeroDateTime'
236-
'MySQL 8.2':
237-
image: 'mysql:8.2'
236+
'MySQL 8.3':
237+
image: 'mysql:8.3'
238238
connectionStringExtra: ''
239239
unsupportedFeatures: 'Ed25519,StreamingResults,Tls11,ZeroDateTime'
240240
'MariaDB 10.6':

docs/content/connection-options.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
lastmod: 2024-01-14
2+
lastmod: 2024-01-22
33
date: 2016-10-16
44
title: Connection Options
55
customtitle: MySQL Connection String Options for .NET/C#
@@ -514,6 +514,11 @@ from your connection string when migrating from Connector/NET to MySqlConnector.
514514
<td>false</td>
515515
<td>Use <a href="/overview/logging/">MySqlConnector logging</a> (which is more flexible) instead.</td>
516516
</tr>
517+
<tr id="OldGetStringBehavior">
518+
<td></td>
519+
<td>false</td>
520+
<td>This option is temporary in Connector/NET and unsupported in MySqlConnector.</td>
521+
</tr>
517522
<tr id="OldSyntax">
518523
<td>OldSyntax, Old Syntax, UseOldSyntax, Use Old Syntax</td>
519524
<td>false</td>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
lastmod: 2023-04-24
2+
lastmod: 2024-01-22
33
date: 2016-10-16
44
menu:
55
main:
@@ -41,7 +41,7 @@ In a .NET Framework application, make the following `app.config` change to regis
4141
<!-- add name="MySQL Data Provider"
4242
invariant="MySql.Data.MySqlClient"
4343
description=".Net Framework Data Provider for MySQL"
44-
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.2.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" / -->
44+
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" / -->
4545

4646
<!-- ADD THIS -->
4747
<add name="MySqlConnector"
@@ -122,7 +122,7 @@ and follow the [best practices in async programming](https://msdn.microsoft.com/
122122

123123
### Implicit Conversions
124124

125-
Connector/NET allows `MySqlDataReader.GetString()` to be called on many non-textual columns, and will implicitly
125+
Prior to v8.3.0, Connector/NET allows `MySqlDataReader.GetString()` to be called on many non-textual columns, and will implicitly
126126
convert the value to a `string` (using the current locale). This is a frequent source of locale-dependent bugs, so
127127
MySqlConnector follows typical ADO.NET practice (e.g., SqlClient, npgsql) and disallows this (by throwing an `InvalidCastException`).
128128

tests/IntegrationTests/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<system.data>
44
<DbProviderFactories>
55
<add name="MySqlConnector" invariant="MySqlConnector" description="Async MySQL ADO.NET Connector" type="MySqlConnector.MySqlConnectorFactory, MySqlConnector, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92" />
6-
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.2.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
6+
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
77
</DbProviderFactories>
88
</system.data>
99
</configuration>

0 commit comments

Comments
 (0)