diff options
author | Alexander Alexeev | 2016-12-09 23:04:20 +0700 |
---|---|---|
committer | Alexander Alexeev | 2016-12-09 23:04:20 +0700 |
commit | 3513bc640ae7a0e07245c4789623fa9457d4b403 (patch) | |
tree | d41e27bcef1806febda11a91963e02fd65ae1c6b /juick-server/src/main | |
parent | 990ca2bf911181c3af9cd6375534553b9355b3a2 (diff) |
bugfix: wrong sql parameter
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
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 aa3e454fc..d7c1d51b2 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); |