Skip to content
Browse files

use the supplied bind values

  • Loading branch information...
1 parent f5ea24b commit d9a20711da15efb781a8b8402871be4890d05c6d @tenderlove tenderlove committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -722,7 +722,7 @@ def table_exists?(name)
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

0 comments on commit d9a2071

Please sign in to comment.
Something went wrong with that request. Please try again.