diff options
author | kennyj <kennyj@gmail.com> | 2012-03-15 02:07:01 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-03-15 02:07:01 +0900 |
commit | 2d787f89f8ce5ccba93f5de0acc7d52e5a17f7df (patch) | |
tree | 714b3deb1fb44af014ade1d1dbbe75499c12d0b0 /activerecord/test | |
parent | 35262b7cd2917017cb158e6427d1007089489d33 (diff) | |
download | rails-2d787f89f8ce5ccba93f5de0acc7d52e5a17f7df.tar.gz rails-2d787f89f8ce5ccba93f5de0acc7d52e5a17f7df.tar.bz2 rails-2d787f89f8ce5ccba93f5de0acc7d52e5a17f7df.zip |
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 |