Skip to content

Commit

Permalink
use the supplied bind values
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Sep 7, 2011
1 parent f5ea24b commit d9a2071
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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

Expand Down

0 comments on commit d9a2071

Please sign in to comment.