lib/duckdb/converter.rb in duckdb-1.1.0.1 vs lib/duckdb/converter.rb in duckdb-1.1.1.0

- old
+ new

@@ -5,11 +5,11 @@ require_relative 'converter/int_to_sym' module DuckDB QueryProgress = Struct.new(:percentage, :rows_processed, :total_rows_to_process) - module Converter + module Converter # :nodoc: all HALF_HUGEINT_BIT = 64 HALF_HUGEINT = 1 << HALF_HUGEINT_BIT FLIP_HUGEINT = 1 << 63 EPOCH = Time.local(1970, 1, 1) EPOCH_UTC = Time.new(1970, 1, 1, 0, 0, 0, 0) @@ -120,10 +120,10 @@ def _to_interval_from_vector(months, days, micros) Interval.new(interval_months: months, interval_days: days, interval_micros: micros) end def _to_uuid_from_vector(lower, upper) - upper = upper ^ FLIP_HUGEINT + upper ^= FLIP_HUGEINT upper += HALF_HUGEINT if upper.negative? str = _to_hugeint_from_vector(lower, upper).to_s(16).rjust(32, '0') "#{str[0, 8]}-#{str[8, 4]}-#{str[12, 4]}-#{str[16, 4]}-#{str[20, 12]}" end