Skip to content

Commit 964c477

Browse files
committed
Document the MySQL bug affecting "IsLong".
1 parent a7ad57e commit 964c477

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,4 @@ property doesn't reference the active transaction. See [#333](https://github.com
9494
* [#85185](https://bugs.mysql.com/bug.php?id=85185): `ConnectionReset=True` does not preserve connection charset
9595
* [#86263](https://bugs.mysql.com/bug.php?id=86263): Transaction isolation level affects all transactions in session
9696
* [#87868](https://bugs.mysql.com/bug.php?id=87868): `ColumnSize` in schema table is incorrect for `CHAR(36)` and `BLOB` columns
97+
* [#87876](https://bugs.mysql.com/bug.php?id=87876): `IsLong` is schema table is incorrect for `LONGTEXT` and `LONGBLOB` columns

tests/SideBySide/DataTypes.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,13 +675,14 @@ public void GetSchemaTable(string column, string table, int columnSize, Type dat
675675
Assert.Equal(ordinal, schema["ColumnOrdinal"]);
676676
Assert.Equal(dataType, schema["DataType"]);
677677
#if BASELINE
678-
// https://bugs.mysql.com/bug.php?id=87868
678+
// https://bugs.mysql.com/bug.php?id=87868, https://bugs.mysql.com/bug.php?id=87876
679679
if (!column.EndsWith("blob", StringComparison.OrdinalIgnoreCase) && column != "text" && dataType != typeof(Guid) && columnSize != int.MaxValue)
680680
Assert.Equal(columnSize, schema["ColumnSize"]);
681681
#else
682682
Assert.Equal(columnSize, schema["ColumnSize"]);
683683
#endif
684684
#if BASELINE
685+
// https://bugs.mysql.com/bug.php?id=87876
685686
Assert.Equal(isLong && columnSize != int.MaxValue, schema["IsLong"]);
686687
#else
687688
Assert.Equal(isLong, schema["IsLong"]);

0 commit comments

Comments
 (0)