Skip to content

Commit

Permalink
Remove the configuration key in the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 7, 2013
1 parent dc4b4c4 commit ea26229
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def postgresql_connection(config) # :nodoc:
# Forward any unused config params to PGconn.connect.
[:statement_limit, :encoding, :min_messages, :schema_search_path,
:schema_order, :adapter, :pool, :checkout_timeout, :template,
:reaping_frequency, :insert_returning, :variables].each do |key|
:prepared_statements, :reaping_frequency, :insert_returning, :variables].each do |key|
conn_params.delete key
end
conn_params.delete_if { |k,v| v.nil? }
Expand Down Expand Up @@ -458,8 +458,6 @@ def initialize(connection, logger, connection_parameters, config)
@visitor = BindSubstitution.new self
end

connection_parameters.delete :prepared_statements

@connection_parameters, @config = connection_parameters, config

# @local_tz is initialized as nil to avoid warnings when connect tries to use it
Expand Down

0 comments on commit ea26229

Please sign in to comment.