Skip to content
Browse files

fix a bug with size parameter for nb pg adapter

  • Loading branch information...
1 parent dcef49e commit aecad818d13c8c77f574b62f5d669eadf79809bc @humanzz committed Oct 20, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/active_record/connection_adapters/neverblock_postgresql_adapter.rb
View
4 lib/active_record/connection_adapters/neverblock_postgresql_adapter.rb
@@ -28,8 +28,8 @@ def insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
end
def connect
- @connection = ::NB::DB::PooledFiberedPostgresConnection.new(@connection_parameters.shift) do
- conn = PGconn.connect(*@connection_parameters)
+ @connection = ::NB::DB::PooledFiberedPostgresConnection.new(@connection_options[0]) do
+ conn = PGconn.connect(*@connection_options[1..(@connection_options.length-1)])
PGconn.translate_results = false if PGconn.respond_to?(:translate_results=)
# Ignore async_exec and async_query when using postgres-pr.
@async = @config[:allow_concurrency] && @connection.respond_to?(:async_exec)

0 comments on commit aecad81

Please sign in to comment.
Something went wrong with that request. Please try again.