From 6a75cc16b2864aa4fb06e61eb9011d83497f607f Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Fri, 31 Jan 2014 20:57:46 +0700 Subject: createUser -lang --- src/com/juick/server/UserQueries.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java index 7a8520be..8d2d0e60 100644 --- a/src/com/juick/server/UserQueries.java +++ b/src/com/juick/server/UserQueries.java @@ -55,16 +55,15 @@ public class UserQueries { return hash; } - public static int createUser(Connection sql, String username, String password, String lang) { + public static int createUser(Connection sql, String username, String password) { int uid = 0; PreparedStatement stmt = null; ResultSet rs = null; try { - stmt = sql.prepareStatement("INSERT INTO users(nick,passw,lang) VALUES (?,?,?)", Statement.RETURN_GENERATED_KEYS); + stmt = sql.prepareStatement("INSERT INTO users(nick,passw) VALUES (?,?)", Statement.RETURN_GENERATED_KEYS); stmt.setString(1, username); stmt.setString(2, password); - stmt.setString(3, lang); stmt.executeUpdate(); rs = stmt.getGeneratedKeys(); if (rs.first()) { -- cgit v1.2.3