class ActiveRecord::ConnectionAdapters::SQLServer::Type::Char

Public Instance Methods

quoted(value) click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 23
def quoted(value)
  return value.quoted_id if value.respond_to?(:quoted_id)
  Utils.quote_string_single(value)
end
serialize(value) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 11
def serialize(value)
  return if value.nil?
  return value if value.is_a?(Data)
  Data.new super, self
end
sqlserver_type() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 17
def sqlserver_type
  'char'.tap do |type|
    type << "(#{limit})" if limit
  end
end
type() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 7
def type
  :char
end