Permalink
Browse files

Add "dead or not enabled" to :dblib's lost connection messages.

  • Loading branch information...
1 parent e2407db commit e8d6e5d32f7c9199cb3d2e2a791d815c143ddfe2 @metaskills metaskills committed Jan 1, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +1 −1 lib/active_record/connection_adapters/sqlserver/errors.rb
View
@@ -1,6 +1,9 @@
* master *
+* Add "dead or not enabled" to :dblib's lost connection messages.
+
+
* 3.0.6 *
* Maintenance release. Lock down to ActiveRecord 3.0.1 using ARel 1.0.0.
@@ -14,7 +14,7 @@ module Errors
}.freeze
LOST_CONNECTION_MESSAGES = {
- :dblib => [/closed connection/],
+ :dblib => [/closed connection/, /dead or not enabled/],
:odbc => [/link failure/, /server failed/, /connection was already closed/, /invalid handle/i],
:adonet => [/current state is closed/, /network-related/]
}.freeze

0 comments on commit e8d6e5d

Please sign in to comment.