From 103719d4dc51ba7b824a28f7c38537d41223363e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Feb 2023 13:17:49 +0800 Subject: [PATCH] fix(nocodb): orWhere -> whereNot --- .../nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts index 14da71d3df..354a8f8f8f 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts @@ -574,7 +574,7 @@ const parseConditionV2 = async ( } else { qb = qb.whereNotNull(customWhereClause || field); if (!isNumericCol(column.uidt)) { - qb = qb.orWhere(field, ''); + qb = qb.whereNot(field, ''); } } break;