fix: include empty or null values

fixes #4123
This commit is contained in:
Ben committed 2026-04-01 09:40:11 +00:00
1 parent 0a838649b7
commit 3a5e3549d7
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ function mapFilter(column: string, operator: string, name: string, type: string
case OPERATORS.equals:
return `${column} = ${value}`;
case OPERATORS.notEquals:
return `${column} != ${value}`;
return `(${column} != ${value} OR ${column} = '')`;
case OPERATORS.contains:
return `positionCaseInsensitive(${column}, ${value}) > 0`;
case OPERATORS.doesNotContain:
+2 -2
View File
@@ -78,11 +78,11 @@ function mapFilter(column: string, operator: string, name: string, type: string
case OPERATORS.equals:
return `${column} = ${value}`;
case OPERATORS.notEquals:
return `${column} != ${value}`;
return `(${column} != ${value} OR ${column} IS NULL)`;
case OPERATORS.contains:
return `${column} ilike ${value}`;
case OPERATORS.doesNotContain:
return `${column} not ilike ${value}`;
return `(${column} not ilike ${value} OR ${column} IS NULL)`;
default:
return '';
}