aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-09-07 10:30:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-09-07 10:44:51 -0700
commitd9a20711da15efb781a8b8402871be4890d05c6d (patch)
tree58a8c5f318447ad9191d71d387ef200dd817604e /activerecord/lib
parentf5ea24b3db952071eea73cdef7fd52e38e7e540f (diff)
downloadrails-d9a20711da15efb781a8b8402871be4890d05c6d.tar.gz
rails-d9a20711da15efb781a8b8402871be4890d05c6d.tar.bz2
rails-d9a20711da15efb781a8b8402871be4890d05c6d.zip
use the supplied bind values
Diffstat (limited to 'activerecord/lib')
-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 9181cc78fc..45ca104ad3 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -722,7 +722,7 @@ module ActiveRecord
SELECT COUNT(*)
FROM pg_tables
WHERE tablename = $1
- AND schemaname = #{schema ? "'#{schema}'" : "ANY (current_schemas(false))"}
+ AND schemaname = #{schema ? "$2" : "ANY (current_schemas(false))"}
SQL
end