Permalink
Browse files

Fix jdbc postgresql subadapter after switch to using Database#statement

  • Loading branch information...
1 parent 7b645ed commit 1ca08b571737f69e473a968434da341c1f725cd0 @jeremyevans committed Feb 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequel/adapters/jdbc/postgresql.rb
@@ -16,7 +16,7 @@ module AdapterMethods
# a statement with the given sql and executes it.
def execute(sql, args=nil)
method = block_given? ? :executeQuery : :execute
- @db.statement do |stmt|
+ @db.send(:statement, self) do |stmt|
rows = @db.log_yield(sql){stmt.send(method, sql)}
yield(rows) if block_given?
end

0 comments on commit 1ca08b5

Please sign in to comment.