Explorar o código

Added timeout messages

Andrew Kane %!s(int64=9) %!d(string=hai) anos
pai
achega
3f15b71b94
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lib/blazer.rb

+ 3 - 1
lib/blazer.rb

@@ -29,7 +29,9 @@ module Blazer
   TIMEOUT_ERRORS = [
     "canceling statement due to statement timeout", # postgres
     "cancelled on user's request", # redshift
-    "system requested abort" # redshift
+    "canceled on user's request", # redshift
+    "system requested abort", # redshift
+    "maximum statement execution time exceeded" # mysql
   ]
   BELONGS_TO_OPTIONAL = {}
   BELONGS_TO_OPTIONAL[:optional] = true if Rails::VERSION::MAJOR >= 5