Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use the supplied bind values

  • Loading branch information...
commit d9a20711da15efb781a8b8402871be4890d05c6d 1 parent f5ea24b
@tenderlove tenderlove authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.