Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit e8d6e5d32f7c9199cb3d2e2a791d815c143ddfe2 1 parent e2407db
Ken Collins authored December 31, 2010
3  CHANGELOG
... ...
@@ -1,6 +1,9 @@
1 1
 
2 2
 * master * 
3 3
 
  4
+* Add "dead or not enabled" to :dblib's lost connection messages.
  5
+
  6
+
4 7
 * 3.0.6 *
5 8
 
6 9
 * Maintenance release. Lock down to ActiveRecord 3.0.1 using ARel 1.0.0.
2  lib/active_record/connection_adapters/sqlserver/errors.rb
@@ -14,7 +14,7 @@ module Errors
14 14
         }.freeze
15 15
         
16 16
         LOST_CONNECTION_MESSAGES    = {
17  
-          :dblib  => [/closed connection/],
  17
+          :dblib  => [/closed connection/, /dead or not enabled/],
18 18
           :odbc   => [/link failure/, /server failed/, /connection was already closed/, /invalid handle/i],
19 19
           :adonet => [/current state is closed/, /network-related/]
20 20
         }.freeze

0 notes on commit e8d6e5d

Please sign in to comment.
Something went wrong with that request. Please try again.