private void HandleException(MySqlException ex) { if (ex.IsFatal) { owner.Close(); } }
// See Issue #985 private bool RetryOnExistsFailure(MySqlException exception, ref int retryCount) { if (exception.Number == 1049 && ++retryCount < 30) { ClearPool(); Thread.Sleep(100); return true; } return false; }
private void HandleException(MySqlException ex) { if (ex.IsFatal) owner.Close(); }
// Login failed is thrown when database does not exist (See Issue #776) private static bool IsDoesNotExist(MySqlException exception) => exception.Number == 1049;