mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 16:13:58 +00:00
fix: correctly map DuckDBDateValue to string
This commit is contained in:
@@ -51,10 +51,7 @@ function _normalizeValue(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value instanceof DuckDBDateValue) {
|
if (value instanceof DuckDBDateValue) {
|
||||||
const year = value.year;
|
return value.toString();
|
||||||
const month = String(value.month).padStart(2, '0');
|
|
||||||
const day = String(value.day).padStart(2, '0');
|
|
||||||
return `${year}-${month}-${day}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value instanceof DuckDBTimeValue) {
|
if (value instanceof DuckDBTimeValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user