]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/Notary.java
Deleted should be NULL if not set, and not strange date.
[gigi.git] / src / org / cacert / gigi / util / Notary.java
index bd6f762586d6c79f07c8d4523948491ba8b96e8e..3dfc4faab5700647bb8ba0ecee6113fab6ebde2d 100644 (file)
@@ -29,7 +29,7 @@ public class Notary {
         if (assurer.getId() == target.getId()) {
             throw new GigiApiException("You cannot assure yourself.");
         }
-        GigiPreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT 1 FROM `notary` where `to`=? and `from`=? AND `deleted`=0");
+        GigiPreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT 1 FROM `notary` where `to`=? and `from`=? AND `deleted` IS NULL");
         ps.setInt(1, target.getId());
         ps.setInt(2, assurer.getId());
         GigiResultSet rs = ps.executeQuery();