diff options
author | Vitaly Takmazov | 2017-08-11 11:02:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-08-11 11:03:14 +0300 |
commit | ec616c9dc078aa72fe577904dd6a2d2383fe4ad1 (patch) | |
tree | 7c76ff4884bc9e8eac63ecc61f80b89df7b325a8 /juick-server-jdbc/src/main/java | |
parent | 9031366d618a23237a8b7cb35ed65a8a953c48d7 (diff) |
xmpp: add pm in roster fix
Diffstat (limited to 'juick-server-jdbc/src/main/java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/PMQueriesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/PMQueriesServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/PMQueriesServiceImpl.java index 9e04b064..6b13f7bc 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/PMQueriesServiceImpl.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/PMQueriesServiceImpl.java @@ -58,7 +58,7 @@ public class PMQueriesServiceImpl extends BaseJdbcService implements PMQueriesSe @Override public boolean addPMinRoster(final int uid, final String jid) { return getJdbcTemplate().update( - "INSERT INTO pm_inroster(user_id, jid) VALUES (?, ?)", uid, jid) > 0; + "INSERT INTO pm_inroster(user_id, jid) VALUES (?, ?) ON DUPLICATE KEY UPDATE user_id=user_id", uid, jid) > 0; } @Transactional |