mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: add support for DateTime64 type in value parsing for improved data handling
This commit is contained in:
@@ -208,6 +208,12 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
|
||||
)}')`;
|
||||
}
|
||||
|
||||
if (column.type === TableColumnType.DateTime64 && value instanceof Date) {
|
||||
value = `parseDateTimeBestEffortOrNull('${OneUptimeDate.toClickhouseDateTime64(
|
||||
value as Date,
|
||||
)}')`;
|
||||
}
|
||||
|
||||
if (column.type === TableColumnType.Number) {
|
||||
if (typeof value === "string") {
|
||||
value = parseInt(value);
|
||||
|
||||
Reference in New Issue
Block a user