From 7c0e24ad85dbc823ee98064286f0c526f6700bf0 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 10 Dec 2022 15:19:49 +0800 Subject: [PATCH] fix(nocodb): add missing bindings --- .../lib/db/sql-data-mapper/lib/sql/functionMappings/sqlite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/sqlite.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/sqlite.ts index 94817b79ce..ad384aeedf 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/sqlite.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/sqlite.ts @@ -83,8 +83,8 @@ const sqlite3 = { ); }, DATETIME_DIFF: ({ fn, knex, pt, colAlias }: MapFnArgs) => { - let datetime_expr1 = fn(pt.arguments[0]); - let datetime_expr2 = fn(pt.arguments[1]); + let datetime_expr1 = fn(pt.arguments[0]).bindings[0]; + let datetime_expr2 = fn(pt.arguments[1]).bindings[0]; // JULIANDAY takes YYYY-MM-DD datetime_expr1 = convertToTargetFormat( datetime_expr1,