diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-15 10:25:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-15 11:12:08 -0700 |
commit | bd3e1ed23ce201dd63bd4ba2cfbfa254f4d36645 (patch) | |
tree | 37f3ca5585041947954909c48bf8dd5d9673baa6 /activerecord/test | |
parent | f9181377924a77dff328c49f51b6dc66c4705e2b (diff) | |
download | rails-bd3e1ed23ce201dd63bd4ba2cfbfa254f4d36645.tar.gz rails-bd3e1ed23ce201dd63bd4ba2cfbfa254f4d36645.tar.bz2 rails-bd3e1ed23ce201dd63bd4ba2cfbfa254f4d36645.zip |
Merge pull request #5437 from kennyj/fix_5430
Fix GH #5430. A Payload name for schema_search_path should be SCHEMA.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/explain_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/explain_test.rb b/activerecord/test/cases/adapters/postgresql/explain_test.rb index 0b61f61572..619d581d5f 100644 --- a/activerecord/test/cases/adapters/postgresql/explain_test.rb +++ b/activerecord/test/cases/adapters/postgresql/explain_test.rb @@ -22,6 +22,13 @@ module ActiveRecord assert_match %(EXPLAIN for: SELECT "audit_logs".* FROM "audit_logs" WHERE "audit_logs"."developer_id" IN (1)), explain assert_match %(Seq Scan on audit_logs), explain end + + def test_dont_explain_for_set_search_path + queries = Thread.current[:available_queries_for_explain] = [] + ActiveRecord::Base.connection.schema_search_path = "public" + assert queries.empty? + end + end end end |