Update UserDAO.java
This commit is contained in:
1 parent
1ea216e71f
commit
96f85636c2
1 file changed
+1
-1
@@ -10,7 +10,7 @@ import server.vo.User;
|
||||
|
||||
public class UserDAO {
|
||||
public static User get(String userName) throws Exception {
|
||||
String sql = "SELECT * FROM user WHERE userName=?";
|
||||
String sql = "SELECT * FROM usr WHERE userName=?";
|
||||
try (Connection con = DBConnection.getConnection();
|
||||
PreparedStatement pst = con.prepareStatement(sql)) {
|
||||
pst.setString(1, userName);
|
||||
|
||||
Reference in new issue
Block a user