From f283f7233adf26fa7f9398e267a0c9c922a2ddb6 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 21 Oct 2023 14:40:19 +0530 Subject: [PATCH] fix: avoid treating `CURRENT_TIMESTAMP` as string Signed-off-by: Pranav C --- .../nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts b/packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts index add129eaf6..8b81c1f6c9 100644 --- a/packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts +++ b/packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts @@ -2198,6 +2198,14 @@ class SqliteClient extends KnexClient { } return result; } + + genValue(value): any { + if (value === 'CURRENT_TIMESTAMP') { + return value; + } + + return super.genValue(value); + } } export default SqliteClient;