Permalink
Browse files

Whitespaces ✂️

  • Loading branch information...
1 parent 925f6bd commit 82b05fbcf4869517c08fb62398b03f3f133c0a28 @rafaelfranca rafaelfranca committed May 23, 2012
View
12 activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -61,21 +61,21 @@ module ConnectionAdapters
# * +pool+: number indicating size of connection pool (default 5)
# * +checkout_timeout+: number of seconds to block and wait for a connection
# before giving up and raising a timeout error (default 5 seconds).
- # * +reaping_frequency+: frequency in seconds to periodically run the
- # Reaper, which attempts to find and close dead connections, which can
- # occur if a programmer forgets to close a connection at the end of a
+ # * +reaping_frequency+: frequency in seconds to periodically run the
+ # Reaper, which attempts to find and close dead connections, which can
+ # occur if a programmer forgets to close a connection at the end of a
# thread or a thread dies unexpectedly. (Default nil, which means don't
- # run the Reaper).
+ # run the Reaper).
# * +dead_connection_timeout+: number of seconds from last checkout
# after which the Reaper will consider a connection reapable. (default
- # 5 seconds).
+ # 5 seconds).
class ConnectionPool
# Every +frequency+ seconds, the reaper will call +reap+ on +pool+.
# A reaper instantiated with a nil frequency will never reap the
# connection pool.
#
# Configure the frequency by setting "reaping_frequency" in your
- # database yaml file.
+ # database yaml file.
class Reaper
attr_reader :pool, :frequency
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -1274,7 +1274,7 @@ def type_to_sql(type, limit = nil, precision = nil, scale = nil)
end
when 'integer'
return 'integer' unless limit
-
+
case limit
when 1, 2; 'smallint'
when 3, 4; 'integer'

0 comments on commit 82b05fb

Please sign in to comment.