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 baedb85395..c77f22144c 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]);