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;