diff options
author | Vitaly Takmazov | 2022-03-07 09:26:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-03-07 09:26:19 +0300 |
commit | 48c9ea1dc8830c4baade9ae0c9f311e81e0890b3 (patch) | |
tree | 179eac5f31721784565622c5b3a656196e69c68c /src/main/java/com/juick/service | |
parent | feecc7c332038220b0e14d2168ea1a82d5fb8682 (diff) |
Fix readonly query
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r-- | src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index b135f3c2..369c508e 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -349,7 +349,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ @Override public void setReadOnly(final int mid, final boolean readonly) { - getJdbcTemplate().update("UPDATE messages SET readonly=?", readonly); + getJdbcTemplate().update("UPDATE messages SET readonly=? WHERE message_id=?", readonly, mid); } @Transactional(readOnly = true) |