From bd3e1ed23ce201dd63bd4ba2cfbfa254f4d36645 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 15 Mar 2012 10:25:38 -0700 Subject: Merge pull request #5437 from kennyj/fix_5430 Fix GH #5430. A Payload name for schema_search_path should be SCHEMA. --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 470c9c6ef3..7aa7f1ebcf 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -885,7 +885,7 @@ module ActiveRecord # This should be not be called manually but set in database.yml. def schema_search_path=(schema_csv) if schema_csv - execute "SET search_path TO #{schema_csv}" + execute("SET search_path TO #{schema_csv}", 'SCHEMA') @schema_search_path = schema_csv end end -- cgit v1.2.3