aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/db2_adapter.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-07-03 08:32:27 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-07-03 08:32:27 +0000
commit45c4b07f5a4e1d7c058d19345c0d0f808ce1abe7 (patch)
treea4ca0255b524a525683f34ecbbe5cb397706c54d /activerecord/lib/active_record/connection_adapters/db2_adapter.rb
parentf51f12d81926ffe3845b6df9a51107edf4c997fe (diff)
downloadrails-45c4b07f5a4e1d7c058d19345c0d0f808ce1abe7.tar.gz
rails-45c4b07f5a4e1d7c058d19345c0d0f808ce1abe7.tar.bz2
rails-45c4b07f5a4e1d7c058d19345c0d0f808ce1abe7.zip
r1611@asus: jeremy | 2005-07-03 04:21:52 -0700
No longer pass superfluous connection to AbstractAdapter#log. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/db2_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/db2_adapter.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb
index b7a164eddc..232764e37c 100644
--- a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb
@@ -52,8 +52,8 @@ begin
def execute(sql, name = nil)
rows_affected = 0
- log(sql, name, @connection) do |connection|
- stmt = DB2::Statement.new(connection)
+ log(sql, name) do
+ stmt = DB2::Statement.new(@connection)
stmt.exec_direct(sql)
rows_affected = stmt.row_count
stmt.free
@@ -126,9 +126,9 @@ begin
def select(sql, name = nil)
stmt = nil
- log(sql, name, @connection) do |connection|
- stmt = DB2::Statement.new(connection)
- stmt.exec_direct(sql + " with ur")
+ log(sql, name) do
+ stmt = DB2::Statement.new(@connection)
+ stmt.exec_direct("#{sql} with ur")
end
rows = []