Module: Sequel::JDBC::SQLServer::DatabaseMethods
- Includes:
- MSSQL::DatabaseMethods
- Defined in:
- lib/sequel/adapters/jdbc/sqlserver.rb
Defined Under Namespace
Modules: MetadataDatasetMethods
Constant Summary
Constants included from MSSQL::DatabaseMethods
MSSQL::DatabaseMethods::FOREIGN_KEY_ACTION_MAP
Instance Attribute Summary
Attributes included from MSSQL::DatabaseMethods
#like_without_collate, #mssql_unicode_strings
Instance Method Summary collapse
Methods included from MSSQL::DatabaseMethods
#call_mssql_sproc, #database_type, #foreign_key_list, #freeze, #global_index_namespace?, #indexes, #server_version, #supports_partial_indexes?, #supports_savepoints?, #supports_transaction_isolation_levels?, #supports_transactional_ddl?, #tables, #views, #with_advisory_lock
Instance Method Details
#setup_type_convertor_map ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/sequel/adapters/jdbc/sqlserver.rb', line 30 def setup_type_convertor_map super map = @type_convertor_map map[Java::JavaSQL::Types::TIME] = MSSQL_RUBY_TIME # Work around constant lazy loading in some drivers begin dto = Java::MicrosoftSql::Types::DATETIMEOFFSET rescue NameError end if dto map[dto] = lambda do |r, i| if v = r.getDateTimeOffset(i) (v.to_s) end end end end |