aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-15 15:01:01 +0300
committerGravatar Vitaly Takmazov2016-01-15 15:01:01 +0300
commit392b0e333248665a72eaf1febee4ccea9a7edf1f (patch)
treee64cb66404f112d865adba52fd59d267b7031a62
parent2635d6187ecd48c732d21e4f510f1df8451ce646 (diff)
spring-jdbc WIP
-rw-r--r--src/main/java/com/juick/server/MessagesQueries.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/MessagesQueries.java b/src/main/java/com/juick/server/MessagesQueries.java
index 8f658b42..91ee1913 100644
--- a/src/main/java/com/juick/server/MessagesQueries.java
+++ b/src/main/java/com/juick/server/MessagesQueries.java
@@ -32,7 +32,6 @@ import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
-import org.springframework.jdbc.core.RowMapper;
/**
*
@@ -240,8 +239,8 @@ public class MessagesQueries {
+ "messages.lon,messages.likes,messages.hidden,"
+ "txt.tags,txt.repliesby,txt.txt FROM messages "
+ "INNER JOIN users ON messages.user_id=users.id "
- + "INNER JOIN messages_txt "
- + "ON messages.message_id = messages_txt.message_id "
+ + "INNER JOIN messages_txt AS txt "
+ + "ON messages.message_id=txt.message_id "
+ "WHERE messages.message_id=?", new Object[]{mid},
(rs, rowNum) -> {
Message msg = new Message();