Permalink
Browse files

Postgresql adapter: added current_schema check for table_exists?

  • Loading branch information...
1 parent 81a19c4 commit 6a14b0180237a60158b3a0a33e5ee461345e19a1 @holodigm holodigm committed Sep 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/test/cases/adapters/postgresql/schema_test.rb
@@ -68,7 +68,9 @@ def test_table_exists_wrong_schema
end
def test_table_exists_quoted_table
- assert(@connection.table_exists?('"things.table"'), "table should exist")
+ with_schema_search_path(SCHEMA_NAME) do
+ assert(@connection.table_exists?('"things.table"'), "table should exist")
+ end
end
def test_with_schema_prefixed_table_name

0 comments on commit 6a14b01

Please sign in to comment.