Methods
Attributes
[R] | identity | |
[R] | primary |
Public Class methods
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb, line 102 102: def self.binary_to_string(value) 103: # FIXME: sybase-ctlib uses separate sql method for binary columns. 104: value 105: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb, line 80 80: def initialize(name, default, sql_type = nil, nullable = nil, identity = nil, primary = nil) 81: super(name, default, sql_type, nullable) 82: @default, @identity, @primary = type_cast(default), identity, primary 83: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb, line 98 98: def self.string_to_binary(value) 99: "0x#{value.unpack("H*")[0]}" 100: end
Public Instance methods
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb, line 85 85: def simplified_type(field_type) 86: case field_type 87: when /int|bigint|smallint|tinyint/i then :integer 88: when /float|double|decimal|money|numeric|real|smallmoney/i then :float 89: when /text|ntext/i then :text 90: when /binary|image|varbinary/i then :binary 91: when /char|nchar|nvarchar|string|varchar/i then :string 92: when /bit/i then :boolean 93: when /datetime|smalldatetime/i then :datetime 94: else super 95: end 96: end