Skip to content

Commit

Permalink
Merge pull request #506 from Shopify/ac-fix-mysql2-conn-regexp
Browse files Browse the repository at this point in the history
Fix connection error message regexp for Mysql2
  • Loading branch information
adrianna-chang-shopify authored Oct 26, 2023
2 parents 1eab2e5 + 510978d commit fe26aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/semian/mysql2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module Mysql2
include Semian::Adapter

CONNECTION_ERROR = Regexp.union(
/Can't connect to MySQL server on/i,
/Lost connection to MySQL server/i,
/Can't connect to (?:MySQL )?server on/i,
/Lost connection to (?:MySQL )?server/i,
/MySQL server has gone away/i,
/Too many connections/i,
/closed MySQL connection/i,
Expand Down

0 comments on commit fe26aae

Please sign in to comment.