From d9a20711da15efb781a8b8402871be4890d05c6d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 7 Sep 2011 10:30:30 -0700 Subject: use the supplied bind values --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb') 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 -- cgit v1.2.3