diff options
author | Vitaly Takmazov | 2016-01-17 01:36:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-17 01:36:57 +0300 |
commit | 8ae5d9e3ce643bf0b8488c4566eff133b2cb2f11 (patch) | |
tree | ab1bc0447fa30a9bbd5198799ad33eab8e386498 /src/main/java/com/juick/server/SubscriptionsQueries.java | |
parent | 27e4beeb2ed195985942262f3f94a8c5b069ba66 (diff) |
fix replyidincrement
Diffstat (limited to 'src/main/java/com/juick/server/SubscriptionsQueries.java')
-rw-r--r-- | src/main/java/com/juick/server/SubscriptionsQueries.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/SubscriptionsQueries.java b/src/main/java/com/juick/server/SubscriptionsQueries.java index 8207f499..3a76e23e 100644 --- a/src/main/java/com/juick/server/SubscriptionsQueries.java +++ b/src/main/java/com/juick/server/SubscriptionsQueries.java @@ -93,6 +93,6 @@ public class SubscriptionsQueries { } public static boolean subscribeMessage(JdbcTemplate sql, int mid, int vuid) { - return sql.update("INSERT INTO subscr_messages(suser_id,message_id) VALUES (" + vuid + "," + mid + ")") == 1; + return sql.update("INSERT IGNORE INTO subscr_messages(suser_id,message_id) VALUES (" + vuid + "," + mid + ")") == 1; } } |