Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Database#disconnect_connection in swift adapter

  • Loading branch information...
commit eceba11d1d3ed0b7d0f1afff37f3e1fa89d60780 1 parent c9776c1
@jeremyevans authored
Showing with 3 additions and 12 deletions.
  1. +3 −12 lib/sequel/adapters/swift.rb
View
15 lib/sequel/adapters/swift.rb
@@ -62,10 +62,6 @@ def connect(server)
setup_connection(swift_class.new(opts))
end
- # Close the given database connection.
- def disconnect_connection(c)
- end
-
# Execute the given SQL, yielding a Swift::Result if a block is given.
def execute(sql, opts={})
synchronize(opts[:server]) do |conn|
@@ -111,15 +107,10 @@ def connection_execute_method
:execute
end
- # Execute SQL on the connection
- def log_connection_execute(conn, sql)
- begin
- log_yield(sql){conn.execute(sql)}
- rescue ::Swift::Error => e
- raise_error(e)
- end
+ def database_error_classes
+ [::Swift::Error]
end
-
+
# Set the :db entry to the same as the :database entry, since
# Swift uses :db.
def server_opts(o)
Please sign in to comment.
Something went wrong with that request. Please try again.