aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-07 00:50:47 +0300
committerGravatar Vitaly Takmazov2018-10-07 00:50:47 +0300
commit73a1c8b79e66faa1096266732bd985f609c57dcd (patch)
tree83857e151324efe93c71446d59d341dde396c73e /juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
parentb1499230aa4a53b8ee406d17b991100c17615f84 (diff)
fix delete query
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
index 838dee48..bb8e43f1 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -1115,6 +1115,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
@Override
public boolean deleteReply(URI userUri, URI replyUri) {
- return jdbcTemplate.update("DELETE FROM replies WHERE user_uri=? AND reply_uri=?", userUri, replyUri) > 0;
+ return jdbcTemplate.update("DELETE FROM replies WHERE user_uri=? AND reply_uri=?",
+ userUri.toASCIIString(), replyUri.toASCIIString()) > 0;
}
}