Permalink
Browse files

use the supplied bind values

  • Loading branch information...
1 parent a6178c3 commit 76993f685e36d20e9639cfca951615c50b28e2b3 @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
@@ -717,7 +717,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 76993f6

Please sign in to comment.