duckdb 0.8.1.2 → 0.8.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/duckdb/converter.rb +2 -1
- data/lib/duckdb/result.rb +2 -4
- data/lib/duckdb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ce44263b8239010b8a203c7cebadf9e1b07323efc89164877e8ded4e37f768
|
4
|
+
data.tar.gz: 44dc20be5aa79c3b29f7bd7b57aa5d9e30524919499a88e7b7d5d50318468554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41fd80e244cd09100931b695533314aa29c040f7571f64747cb79533da45c8685adc1fc04bc731cff5d59e5c58f8669db2c9cb1eebb8dcdfc78f92b3d7cb49d6
|
7
|
+
data.tar.gz: 75e8d32f1d467be39365f0ffe3f3f40471b1b580929f025736ec6d47db9dad62a99beb490a118066a7145837717dfcc337e5f1aaafba7f068c63279ef16770f9
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/duckdb/converter.rb
CHANGED
@@ -23,7 +23,8 @@ module DuckDB
|
|
23
23
|
|
24
24
|
def _to_decimal_from_vector(_width, scale, lower, upper)
|
25
25
|
v = _to_hugeint_from_vector(lower, upper).to_s
|
26
|
-
v
|
26
|
+
v = v.rjust(scale + 1, '0') if v.length < scale
|
27
|
+
v[-scale, 0] = '.'
|
27
28
|
BigDecimal(v)
|
28
29
|
end
|
29
30
|
|
data/lib/duckdb/result.rb
CHANGED
@@ -102,10 +102,8 @@ module DuckDB
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def _to_decimal_internal(row, col)
|
105
|
-
lower, upper,
|
106
|
-
|
107
|
-
v[-scale, 0] = '.' unless v == '0'
|
108
|
-
BigDecimal(v)
|
105
|
+
lower, upper, width, scale = __to_decimal_internal(row, col)
|
106
|
+
Converter._to_decimal_from_vector(width, scale, lower, upper)
|
109
107
|
end
|
110
108
|
end
|
111
109
|
end
|
data/lib/duckdb/version.rb
CHANGED