mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 17:53:59 +00:00
duckdb - fixed bigint processing
This commit is contained in:
@@ -31,7 +31,14 @@ function _normalizeValue(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof value === 'bigint') {
|
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) {
|
if (value instanceof DuckDBTimestampValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user