lib/duckdb/converter.rb in duckdb-0.8.1.2 vs lib/duckdb/converter.rb in duckdb-0.8.1.3

- old
+ new

@@ -21,10 +21,11 @@ (upper * HALF_HUGEINT) + lower end def _to_decimal_from_vector(_width, scale, lower, upper) v = _to_hugeint_from_vector(lower, upper).to_s - v[-scale, 0] = '.' unless v == '0' + v = v.rjust(scale + 1, '0') if v.length < scale + v[-scale, 0] = '.' BigDecimal(v) end def _to_interval_from_vector(months, days, micros) hash = { year: 0, month: 0, day: 0, hour: 0, min: 0, sec: 0, usec: 0 }