aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-26 02:14:22 +0300
committerGravatar Vitaly Takmazov2016-01-26 02:14:22 +0300
commite292163fd4c343764889f1d6161720a2d57dfc84 (patch)
treeebd43f2cd746fdfd1c070d636ad4660ba7243470 /src/main
parent35bce4efb5fa1eb547dfe2301e86afd10b0283e9 (diff)
Revert "fix getUsersByName, take 3"
This reverts commit 35bce4efb5fa1eb547dfe2301e86afd10b0283e9.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/server/UserQueries.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/UserQueries.java b/src/main/java/com/juick/server/UserQueries.java
index 1ec0e512..cfa52a16 100644
--- a/src/main/java/com/juick/server/UserQueries.java
+++ b/src/main/java/com/juick/server/UserQueries.java
@@ -104,8 +104,8 @@ public class UserQueries {
}
public static List<User> getUsersByName(JdbcTemplate sql, List<String> unames) {
- return sql.queryForList("SELECT id,nick,banned FROM users WHERE nick IN (" + Utils.convertArrayString2String(unames) + ")",
- User.class, new UserMapper());
+ return sql.query("SELECT id,nick,banned FROM users WHERE nick IN (" + Utils.convertArrayString2String(unames) + ")",
+ new UserMapper());
}
public static List<User> getUsersByID(JdbcTemplate sql, List<Integer> uids) {