Forum: Rails-ES Re: SQLServer y fechas en W2000

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Angel Mauricio Pino Gonzalez (Guest)
on 2007-02-21 17:24
(Received via mailing list)
Encontre esto , lo probare y les cuento, si alguien sabe algo más, se
lo agrdecere.

 Re: Re: SQL Server datetime error
Posted by Tom W. (Guest)
on 30.01.2006 13:59
(Received via mailing list)


One more attempt to try and fix this issue:

Could you replace the quote method in sqlserver_adapter.rb with this
and see if it helps at all:

def quote(value, column = nil)
        case value
          when String
            if column && column.type == :binary
          when NilClass              then "NULL"
          when TrueClass             then '1'
          when FalseClass            then '0'
          when Float, Fixnum, Bignum then value.to_s
          when Date, Time, DateTime  then "convert(datetime,
'#{value.strftime("%Y-%m-%d %H:%M:%S")}', 121)"

Angel Mauricio Pino G
Movil: 08-577.92.72
Manel Monguilod (Guest)
on 2007-02-21 17:35
(Received via mailing list)
Ror-es mailing list
This topic is locked and can not be replied to.