Module: SQLServerDBI::TypeUtil::ClassMethods

Defined in:
lib/core_ext/dbi.rb

Instance Method Summary collapse

Instance Method Details

#type_name_to_module_with_sqlserver_types(type_name) ⇒ Object

Capture all types classes that we need to handle directly for SQL Server and allow normal processing for those that we do not.



60
61
62
63
64
65
66
67
68
69
# File 'lib/core_ext/dbi.rb', line 60

def type_name_to_module_with_sqlserver_types(type_name)
  case type_name
  when /^timestamp$/i
    DBI::Type::SqlserverTimestamp
  when /^float|decimal|money$/i
    DBI::Type::SqlserverForcedString
  else
    type_name_to_module_without_sqlserver_types(type_name)
  end
end