-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Description
These are my steps to reproduce the issue:
- In my running web app, call
MySqlCommandBuilder.DeriveParametersAsyncto get parameters of an **nonexistent ** stored procedure, then I get aMySqlExceptionwhich its message is ""Procedure or function 'ABC' cannot be found in database 'XYZ'." - I deploy the stored procedure 'ABC' to the database 'XYZ' while the web app is running
- Call
MySqlCommandBuilder.DeriveParametersAsyncto get parameters of stored procedure 'ABC' again and still get the exception - Restart my web app, and the exception is gone
It seems the cachedProcedure should be checked if it's null before storing it in cachedProcedures
MySqlConnector/src/MySqlConnector/MySql.Data.MySqlClient/MySqlConnection.cs
Lines 533 to 537 in 2d5189a
lock (cachedProcedures) { cachedProcedures[normalized.FullyQualified] = cachedProcedure; count = cachedProcedures.Count; }
Reactions are currently unavailable