Sha256: 550ff3fc1adb95fc0c7b2d8c90d1b78a449203a1ae6df856f153f705946a152f

Contents?: true

Size: 353 Bytes

Versions: 6

Compression:

Stored size: 353 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module SQLServer
      module Type
        class SmallDateTime < DateTime

          include Castable


          private

          def cast_usec(value)
            0
          end

          def cast_usec_for_database(value)
            '.000'
          end

        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-4.2.4 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.3 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.2 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.1 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.0 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.0.pre lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb