From b545a9e7105d45d660de2ee532a2e435723708a9 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 9 Jun 2022 13:39:01 +0800 Subject: [PATCH] fix: question mark in CONCAT --- .../sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts index 36443d70a4..2de1bba687 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts @@ -627,7 +627,7 @@ export default async function formulaQueryBuilderv2( } return query; }) - .join()})${colAlias}` + .join()})${colAlias}`.replace(/\?/g, '\\?') ); } else if (pt.type === 'Literal') { return knex.raw(`?${colAlias}`, [pt.value]);