ソースを参照

Added timeout messages

Andrew Kane 9 年 前
コミット
3f15b71b94
1 ファイル変更3 行追加1 行削除
  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