aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-07-21 23:34:23 +0700
committerGravatar Ugnich Anton2013-07-21 23:34:23 +0700
commit9b8dbec964ec345f1015eb49a7dedf7803c93164 (patch)
tree8fa9a2f3bd9e9b0e136d3610471adf9482b6c984 /src/com/juick
parentb7887266662d95bd70ad00f046d9205f9edc4306 (diff)
Subscribe to @juick when creating a new user
Diffstat (limited to 'src/com/juick')
-rw-r--r--src/com/juick/server/UserQueries.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java
index f1b235af..c170b6cd 100644
--- a/src/com/juick/server/UserQueries.java
+++ b/src/com/juick/server/UserQueries.java
@@ -65,6 +65,17 @@ public class UserQueries {
Utils.finishSQL(null, stmt);
}
+ PreparedStatement stmt3 = null;
+ try {
+ stmt3 = sql.prepareStatement("INSERT INTO subscr_users(user_id,suser_id) VALUES (2,?)");
+ stmt3.setInt(1, uid);
+ stmt3.executeUpdate();
+ } catch (SQLException e) {
+ System.err.println(e);
+ } finally {
+ Utils.finishSQL(null, stmt);
+ }
+
return uid;
}