Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow disconnecting the same connection multiple times in the db2 ada…

…pter
  • Loading branch information...
commit e2e8df2d101b553170b621974811dc1a61b50ced 1 parent a73ea11
@jeremyevans authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sequel/adapters/db2.rb
View
4 lib/sequel/adapters/db2.rb
@@ -58,8 +58,8 @@ def connect(server)
end
def disconnect_connection(conn)
- checked_error("Could not disconnect from database"){DB2CLI.SQLDisconnect(conn)}
- checked_error("Could not free Database handle"){DB2CLI.SQLFreeHandle(DB2CLI::SQL_HANDLE_DBC, conn)}
+ DB2CLI.SQLDisconnect(conn)
+ DB2CLI.SQLFreeHandle(DB2CLI::SQL_HANDLE_DBC, conn)
end
def execute(sql, opts={}, &block)
Please sign in to comment.
Something went wrong with that request. Please try again.