fix: correctly map DuckDBDateValue to string

This commit is contained in:
Pavel
2025-06-05 20:23:34 +02:00
parent 6f69205818
commit ff1b58ebd8

View File

@@ -51,10 +51,7 @@ function _normalizeValue(value) {
}
if (value instanceof DuckDBDateValue) {
const year = value.year;
const month = String(value.month).padStart(2, '0');
const day = String(value.day).padStart(2, '0');
return `${year}-${month}-${day}`;
return value.toString();
}
if (value instanceof DuckDBTimeValue) {