mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
duckdb - fixed bigint processing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user