diff options
author | Vitaly Takmazov | 2016-07-15 22:25:39 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-15 22:25:39 +0300 |
commit | e64a6e91945945a1940355789a9609b21eac2ec5 (patch) | |
tree | 3dacfc2d332948c865363df974c8efb18cef9f67 /juick-core/src/main/java/com | |
parent | 86ff2faabe05ef8b856166455d2f9977afd778a1 (diff) | |
parent | 1490a0177059918f831217f56b3e7627a63fc963 (diff) |
Merge branch 'master' of ssh://den.jabber.ru:2205/var/lib/git/com.juick.http.www
Diffstat (limited to 'juick-core/src/main/java/com')
-rw-r--r-- | juick-core/src/main/java/com/juick/server/MessagesQueries.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-core/src/main/java/com/juick/server/MessagesQueries.java b/juick-core/src/main/java/com/juick/server/MessagesQueries.java index dfc3efbc..8c79bfd9 100644 --- a/juick-core/src/main/java/com/juick/server/MessagesQueries.java +++ b/juick-core/src/main/java/com/juick/server/MessagesQueries.java @@ -173,8 +173,8 @@ public class MessagesQueries { } } try (PreparedStatement ps = conn.prepareStatement("UPDATE messages SET maxreplyid=? WHERE message_id=?")) { - ps.setInt(1, mid); - ps.setInt(2, replyNo); + ps.setInt(1, replyNo); + ps.setInt(2, mid); if (ps.executeUpdate() != 1) { throw new IncorrectResultSizeDataAccessException("Cannot find a message to update: " + mid, 1, 0); } |