Sha256: 39790c48fd83f17337fdbd1fca6f84fc531457d19d3134b09c7d005eea6416a1
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 Bytes
Contents
module Sequel module ActiveRecordConnection module Sqlite def self.extended(db) if db.timezone == :utc && db.respond_to?(:current_timestamp_utc) db.current_timestamp_utc = true end end def synchronize(*) super do |conn| conn.extended_result_codes = true if conn.respond_to?(:extended_result_codes=) Utils.add_prepared_statements_cache(conn) Utils.set_value(conn, :results_as_hash, nil) do yield conn end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems