aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-02-09 15:15:37 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-09 15:15:37 -0800
commitc560c8b2ba2af2ff1942e40b8eff8287354bf7d8 (patch)
tree5ce75d028bc92fdd405a09f48d8e9dca1ccdb9cd /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parent37efb517cb87c0894d8ecaa2066c5be6283f5450 (diff)
downloadrails-c560c8b2ba2af2ff1942e40b8eff8287354bf7d8.tar.gz
rails-c560c8b2ba2af2ff1942e40b8eff8287354bf7d8.tar.bz2
rails-c560c8b2ba2af2ff1942e40b8eff8287354bf7d8.zip
log method takes an option list of bind values
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 46c0f3fafe..20be4a22ea 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -532,7 +532,7 @@ module ActiveRecord
def exec_query(sql, name = 'SQL', binds = [])
return exec_no_cache(sql, name) if binds.empty?
- log(sql, name) do
+ log(sql, name, binds) do
unless @statements.key? sql
nextkey = "a#{@statements.length + 1}"
@connection.prepare nextkey, sql