aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-09 23:04:20 +0700
committerGravatar Alexander Alexeev2016-12-09 23:04:20 +0700
commit3513bc640ae7a0e07245c4789623fa9457d4b403 (patch)
treed41e27bcef1806febda11a91963e02fd65ae1c6b
parent990ca2bf911181c3af9cd6375534553b9355b3a2 (diff)
bugfix: wrong sql parameter
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java2
1 files changed, 1 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 aa3e454f..d7c1d51b 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -482,7 +482,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
return getNamedParameterJdbcTemplate().queryForList(
"SELECT message_id FROM subscr_messages WHERE suser_id = :uid" +
(before > 0 ?
- " AND message_id < :before " : "") +
+ " AND message_id < :before " : " ") +
"ORDER BY message_id DESC LIMIT 20",
sqlParameterSource,
Integer.class);