Move comment about microseconds [ci skip]

The microseconds handling was already moved to `Quoting#quoted_date`.
This commit is contained in:
Ryuta Kamizono 2015-03-03 22:28:03 +09:00
parent 5f844211be
commit e61c32cb38
2 changed files with 3 additions and 2 deletions

@ -123,6 +123,8 @@ def unquoted_false
'f'
end
# Quote date/time values for use in SQL input. Includes microseconds
# if the value is a Time responding to usec.
def quoted_date(value)
if value.acts_like?(:time)
zone_conversion_method = ActiveRecord::Base.default_timezone == :utc ? :getutc : :getlocal

@ -40,8 +40,7 @@ def quote_column_name(name) #:nodoc:
PGconn.quote_ident(name.to_s)
end
# Quote date/time values for use in SQL input. Includes microseconds
# if the value is a Time responding to usec.
# Quote date/time values for use in SQL input.
def quoted_date(value) #:nodoc:
if value.year <= 0
bce_year = format("%04d", -value.year + 1)