From 236876e168fd865230fb94c53be4cac4ada6e46b Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Tue, 19 Nov 2013 02:46:34 +0700 Subject: MessagesQueries: -places, *search sql --- src/com/juick/server/MessagesQueries.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/com/juick/server') diff --git a/src/com/juick/server/MessagesQueries.java b/src/com/juick/server/MessagesQueries.java index 8a3b1268..1aeb45f8 100644 --- a/src/com/juick/server/MessagesQueries.java +++ b/src/com/juick/server/MessagesQueries.java @@ -735,12 +735,12 @@ public class MessagesQueries { ResultSet rs = null; try { if (before > 0) { - stmt = sqlSearch.prepareStatement("SELECT @id AS message_id FROM messages WHERE user_id=? AND MATCH(?) AND @id 0) { + if (rs.getDouble(13) != 0) { msg.Place = new com.juick.Place(); - msg.Place.pid = rs.getInt(13); - msg.Place.name = rs.getString(14); - msg.Place.lat = rs.getDouble(15); - msg.Place.lon = rs.getDouble(16); + msg.Place.lat = rs.getDouble(13); + msg.Place.lon = rs.getDouble(14); } msgs.add(msg); -- cgit v1.2.3