lib/duckdb/result.rb in duckdb-0.8.1.3 vs lib/duckdb/result.rb in duckdb-0.9.0
- old
+ new
@@ -56,10 +56,11 @@
if self.class.use_chunk_each?
return chunk_each unless block_given?
chunk_each { |row| yield row }
else
+ warn('this `each` behavior will be deprecated in the future. set `Result.use_chunk_each = true` to use new `each` behavior.')
return to_enum { row_size } unless block_given?
row_count.times do |row_index|
yield row(row_index)
end
@@ -92,10 +93,10 @@
_to_string(row, col).to_i
end
def _to_hugeint_internal(row, col)
lower, upper = __to_hugeint_internal(row, col)
- upper * Converter::HALF_HUGEINT + lower
+ Converter._to_hugeint_from_vector(lower, upper)
end
def _to_decimal(row, col)
BigDecimal(_to_string(row, col))
end