From e1376a86a55afec15988fc763e2a126efa55bdaf Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 15 Oct 2022 09:51:18 +0200 Subject: Fix filter by nullable field --- src/models/warning.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models/warning.rs') diff --git a/src/models/warning.rs b/src/models/warning.rs index c001fc0..5caf545 100644 --- a/src/models/warning.rs +++ b/src/models/warning.rs @@ -230,7 +230,7 @@ impl Warning { query += r#" WHERE warnings.resolved_by = $1"#; } None => { - query += r#" WHERE warnings.resolved_by = NULL"#; + query += r#" WHERE warnings.resolved_by IS NULL"#; } }; } -- cgit v1.2.3-71-g8e6c