diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-15 07:51:18 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-15 07:51:18 +0000 |
| commit | e1376a86a55afec15988fc763e2a126efa55bdaf (patch) | |
| tree | 25275318e58ad6898a77b88f04652c9a0d243863 /src/models | |
| parent | c1c674553476cacfa96ce65bd29588792df65a65 (diff) | |
Fix filter by nullable field
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/warning.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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"#; } }; } |
