aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/UserQueries.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-04-14 06:44:35 +0700
committerGravatar Ugnich Anton2013-04-14 06:44:35 +0700
commitde81a033905d1c4cd18ac9b5af8a7f8fb853b121 (patch)
tree9dba82f2c16d45f6148778c9d95e2829d276a873 /src/com/juick/server/UserQueries.java
parent917e44c66ee99f31b0ac655c56b598d71014652e (diff)
PushQueries
Diffstat (limited to 'src/com/juick/server/UserQueries.java')
-rw-r--r--src/com/juick/server/UserQueries.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java
index 17873676..a9f00f94 100644
--- a/src/com/juick/server/UserQueries.java
+++ b/src/com/juick/server/UserQueries.java
@@ -53,6 +53,18 @@ public class UserQueries {
} finally {
Utils.finishSQL(rs, stmt);
}
+
+ PreparedStatement stmt2 = null;
+ try {
+ stmt2 = sql.prepareStatement("INSERT INTO useroptions(user_id) VALUES (?)");
+ stmt2.setInt(1, uid);
+ stmt2.executeUpdate();
+ } catch (SQLException e) {
+ System.err.println(e);
+ } finally {
+ Utils.finishSQL(null, stmt);
+ }
+
return uid;
}