diff options
author | Ugnich Anton | 2013-07-21 23:34:23 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-07-21 23:34:23 +0700 |
commit | 9b8dbec964ec345f1015eb49a7dedf7803c93164 (patch) | |
tree | 8fa9a2f3bd9e9b0e136d3610471adf9482b6c984 | |
parent | b7887266662d95bd70ad00f046d9205f9edc4306 (diff) |
Subscribe to @juick when creating a new user
-rw-r--r-- | src/com/juick/server/UserQueries.java | 11 |
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; } |