Method: Sequel::SQLite::DatasetMethods#constant_sql_append

Defined in:
lib/sequel/adapters/shared/sqlite.rb

#constant_sql_append(sql, constant) ⇒ Object

SQLite has CURRENT_TIMESTAMP and related constants in UTC instead of in localtime, so convert those constants to local time.



659
660
661
662
663
664
665
# File 'lib/sequel/adapters/shared/sqlite.rb', line 659

def constant_sql_append(sql, constant)
  if (c = CONSTANT_MAP[constant]) && !db.current_timestamp_utc
    sql << c
  else
    super
  end
end