Permalink
Browse files

Make disconnect_connection on Firebird handle already disconnected co…

…nnection
  • Loading branch information...
1 parent eee0060 commit 4bb44869112555fccd250a936b2e5c58c82f35e0 @jeremyevans committed Oct 24, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/sequel/adapters/firebird.rb
@@ -28,6 +28,14 @@ def connect(server)
:password => opts[:password]).connect
end
+ def disconnect_connection(conn)
+ begin
+ conn.close
+ rescue Fb::Error
+ nil
+ end
+ end
+
def execute(sql, opts={})
begin
synchronize(opts[:server]) do |conn|

0 comments on commit 4bb4486

Please sign in to comment.