Commit ee05c328 authored by akwizgran's avatar akwizgran

Allow pending contact state update not to affect any rows.

parent 421ca309
......@@ -3291,7 +3291,7 @@ abstract class JdbcDatabase implements Database<Connection> {
ps.setInt(1, state.getValue());
ps.setBytes(2, p.getBytes());
int affected = ps.executeUpdate();
if (affected != 1) throw new DbStateException();
if (affected < 0 || affected > 1) throw new DbStateException();
} catch (SQLException e) {
tryToClose(ps, LOG, WARNING);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment