aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
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