Skip to content

Commit 64454d0

Browse files
committed
Add another MySql.Data bug.
1 parent 562cd72 commit 64454d0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,4 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector. (~
298298
* [#106242](https://bugs.mysql.com/bug.php?id=106242): `MySqlConnection.Open` throws `AggregateException` instead of `MySqlException`
299299
* [#106243](https://bugs.mysql.com/bug.php?id=106243): `CancellationToken` doesn't cancel `MySqlConnection.OpenAsync`
300300
* [#106244](https://bugs.mysql.com/bug.php?id=106244): `MySqlDataReader.GetFieldValue<Stream>` throws `InvalidCastException`
301+
* [#106247](https://bugs.mysql.com/bug.php?id=106247): Can't use `MySqlDbType.Enum` or `MySqlDbType.Set` with prepared command

tests/SideBySide/PreparedCommandTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,11 @@ public static IEnumerable<object[]> GetInsertAndQueryData()
396396
yield return new object[] { isPrepared, "TEXT", "testing testing", MySqlDbType.Text };
397397
yield return new object[] { isPrepared, "DATE", new DateTime(2018, 7, 23), MySqlDbType.Date };
398398
yield return new object[] { isPrepared, "DATETIME(3)", new DateTime(2018, 7, 23, 20, 46, 52, 123), MySqlDbType.DateTime };
399+
#if !BASELINE
400+
// https://bugs.mysql.com/bug.php?id=106247
399401
yield return new object[] { isPrepared, "ENUM('small', 'medium', 'large')", "medium", MySqlDbType.Enum };
400402
yield return new object[] { isPrepared, "SET('one','two','four','eight')", "two,eight", MySqlDbType.Set };
403+
#endif
401404
#if !BASELINE
402405
yield return new object[] { isPrepared, "BOOL", true, MySqlDbType.Bool };
403406
#else

0 commit comments

Comments
 (0)