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