diff options
author | Carl Lerche <me@carllerche.com> | 2010-10-13 11:40:47 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2010-10-13 11:40:47 -0700 |
commit | 941844cbe503c312692e2f78d61abaca5b4896b1 (patch) | |
tree | 517e94597cd710afd2059851e7f98843d6951bdb /activerecord/lib/active_record | |
parent | 1ddbb216eae155cd9347c7651b16a885867c542c (diff) | |
download | rails-941844cbe503c312692e2f78d61abaca5b4896b1.tar.gz rails-941844cbe503c312692e2f78d61abaca5b4896b1.tar.bz2 rails-941844cbe503c312692e2f78d61abaca5b4896b1.zip |
rb_thread_select should always be used in DB drivers when available.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 5f14284615..8fbddb13bd 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -930,7 +930,7 @@ module ActiveRecord 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) + @async = @connection.respond_to?(:async_exec) # Money type has a fixed precision of 10 in PostgreSQL 8.2 and below, and as of # PostgreSQL 8.3 it has a fixed precision of 19. PostgreSQLColumn.extract_precision |