Ejemplo n.º 1
0
 // 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);
 }
Ejemplo n.º 2
0
 // Login failed is thrown when database does not exist (See Issue #776)
 public static bool IsDoesNotExist(MyCatException exception) => exception.Number == 1049;