From 28c542903ea37c19984dc2f2154ec88962a8b6b0 Mon Sep 17 00:00:00 2001 From: "yc.du@protonmail.com" Date: Mon, 14 Dec 2020 19:15:28 -0600 Subject: [PATCH] Relates to https://bugs.mysql.com/bug.php?id=101592 Signed-off-by: mrranknullity srevi2@uis.edu --- MySQL.Data/src/Properties/VersionInfo.cs | 4 ++-- MySQL.Data/src/datareader.cs | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/MySQL.Data/src/Properties/VersionInfo.cs b/MySQL.Data/src/Properties/VersionInfo.cs index 4e744428..943d8391 100644 --- a/MySQL.Data/src/Properties/VersionInfo.cs +++ b/MySQL.Data/src/Properties/VersionInfo.cs @@ -40,6 +40,6 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("8.0.22")] -[assembly: AssemblyInformationalVersion("8.0.22")] +[assembly: AssemblyVersion("8.0.23")] +[assembly: AssemblyInformationalVersion("8.0.23")] [assembly: NeutralResourcesLanguage("en-US")] \ No newline at end of file diff --git a/MySQL.Data/src/datareader.cs b/MySQL.Data/src/datareader.cs index a100e312..6ca9221a 100644 --- a/MySQL.Data/src/datareader.cs +++ b/MySQL.Data/src/datareader.cs @@ -1008,12 +1008,20 @@ private void ClearKillFlag() try { - dummyCommand.ExecuteReader(); // ExecuteReader catches the exception and returns null, which is expected. + dummyCommand.ExecuteReader(); // ExecuteReader catches the exception and returns null, which is expected. } catch (MySqlException ex) { - if (ex.Number != (int)MySqlErrorCode.NoSuchTable) throw; + int[] errors = + { + (int) MySqlErrorCode.NoSuchTable, (int) MySqlErrorCode.TableAccessDenied, + (int) MySqlErrorCode.UnknownTable + }; + + if (Array.IndexOf(errors, (int) ex.Number) < 0) + throw; } + } private void ProcessOutputParameters()