aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/UserQueries.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-06-20 18:22:12 +0700
committerGravatar Ugnich Anton2013-06-20 18:22:12 +0700
commita1ecda62eef3b802dbfa044f75ec0050de6ba75e (patch)
treed8d0ec6cc221cd6f0f4b034c85f47f5ef8eac5dd /src/com/juick/server/UserQueries.java
parentde81a033905d1c4cd18ac9b5af8a7f8fb853b121 (diff)
SQLHelpers.getArrayInteger
Users.getUserRead Users.getUserReaders
Diffstat (limited to 'src/com/juick/server/UserQueries.java')
-rw-r--r--src/com/juick/server/UserQueries.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java
index a9f00f94..652809d6 100644
--- a/src/com/juick/server/UserQueries.java
+++ b/src/com/juick/server/UserQueries.java
@@ -64,7 +64,7 @@ public class UserQueries {
} finally {
Utils.finishSQL(null, stmt);
}
-
+
return uid;
}
@@ -358,6 +358,14 @@ public class UserQueries {
return ret;
}
+ public static ArrayList<Integer> getUserRead(Connection sql, int uid) {
+ return SQLHelpers.getArrayInteger(sql, "SELECT user_id FROM subscr_users WHERE suser_id=?", uid);
+ }
+
+ public static ArrayList<Integer> getUserReaders(Connection sql, int uid) {
+ return SQLHelpers.getArrayInteger(sql, "SELECT suser_id FROM subscr_users WHERE user_id=?", uid);
+ }
+
public static int getStatsIRead(Connection sql, int uid) {
int ret = 0;
PreparedStatement stmt = null;