class Sequel::ODBC::MSSQL::Dataset

Private Instance Methods

default_timestamp_format() click to toggle source

Use ODBC format, not Microsoft format, as the ODBC layer does some translation, but allow for millisecond precision.

# File lib/sequel/adapters/odbc/mssql.rb, line 45
def default_timestamp_format
  "{ts '%Y-%m-%d %H:%M:%S%N'}"
end
literal_date(v) click to toggle source

Use ODBC format, not Microsoft format, as the ODBC layer does some translation.

# File lib/sequel/adapters/odbc/mssql.rb, line 51
def literal_date(v)
  v.strftime("{d '%Y-%m-%d'}")
end