Browse Source

fix(nocodb): condition notempty logic

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
8840cd9d43
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

@ -436,7 +436,7 @@ const parseConditionV2 = async (
if (column.uidt === UITypes.Formula) {
[field, val] = [val, field];
}
qb = qb.whereNot(field, val);
qb = qb.whereNot(field, val).orWhereNull(field);
break;
case 'null':
qb = qb.whereNull(customWhereClause || field);

Loading…
Cancel
Save