summaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-15 07:51:18 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-15 07:51:18 +0000
commite1376a86a55afec15988fc763e2a126efa55bdaf (patch)
tree25275318e58ad6898a77b88f04652c9a0d243863 /src/models
parentc1c674553476cacfa96ce65bd29588792df65a65 (diff)
Fix filter by nullable field
Diffstat (limited to 'src/models')
-rw-r--r--src/models/warning.rs2
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"#;
}
};
}