Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make disconnect_connection on Firebird handle already disconnected co…

…nnection
  • Loading branch information...
commit 4bb44869112555fccd250a936b2e5c58c82f35e0 1 parent eee0060
@jeremyevans authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/sequel/adapters/firebird.rb
View
8 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|
Please sign in to comment.
Something went wrong with that request. Please try again.