duckdb - fixed bigint processing

This commit is contained in:
SPRINX0\prochazka
2025-05-05 16:24:55 +02:00
parent 110d87e512
commit ce7559087e

View File

@@ -31,7 +31,14 @@ function _normalizeValue(value) {
}
if (typeof value === 'bigint') {
return parseInt(value);
const parsed = parseInt(value);
if (Number.isSafeInteger(parsed)) {
return parsed;
} else {
return {
$bigint: value.toString(),
};
}
}
if (value instanceof DuckDBTimestampValue) {