| Module | Sequel::JDBC::SQLServer::DatabaseMethods |
| In: |
lib/sequel/adapters/jdbc/sqlserver.rb
|
# File lib/sequel/adapters/jdbc/sqlserver.rb, line 29
29: def setup_type_convertor_map
30: super
31: map = @type_convertor_map
32: map[Java::JavaSQL::Types::TIME] = SQLServer.method(:MSSQLRubyTime)
33:
34: # Work around constant lazy loading in some drivers
35: begin
36: dto = Java::MicrosoftSql::Types::DATETIMEOFFSET
37: rescue NameError
38: end
39:
40: if dto
41: map[dto] = lambda do |r, i|
42: if v = r.getDateTimeOffset(i)
43: to_application_timestamp(v.to_s)
44: end
45: end
46: end
47: end