module Sequel::JDBC::SQLServer

Public Class Methods

MSSQLRubyTime(r, i) click to toggle source
# File lib/sequel/adapters/jdbc/sqlserver.rb, line 17
def self.MSSQLRubyTime(r, i)
  # MSSQL-Server TIME should be fetched as string to keep the precision intact, see:
  # https://docs.microsoft.com/en-us/sql/t-sql/data-types/time-transact-sql#a-namebackwardcompatibilityfordownlevelclientsa-backward-compatibility-for-down-level-clients
  if v = r.getString(i)
    Sequel.string_to_time("#{v}")
  end
end