From 392b0e333248665a72eaf1febee4ccea9a7edf1f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 15 Jan 2016 15:01:01 +0300 Subject: spring-jdbc WIP --- src/main/java/com/juick/server/MessagesQueries.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main') 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(); -- cgit v1.2.3