删除了无效数据表字段;
修改了getUserInfo,现在会获取到用户昵称而不是唯一且不可更改的username
This commit is contained in:
parent
7a391df16b
commit
149f8f79f0
@ -70,8 +70,7 @@ public class DatabaseService {
|
|||||||
"interests CLOB, " +
|
"interests CLOB, " +
|
||||||
"experiences CLOB, " +
|
"experiences CLOB, " +
|
||||||
"skills CLOB, " +
|
"skills CLOB, " +
|
||||||
"careerGoals CLOB, " +
|
"careerGoals CLOB)";
|
||||||
"projects CLOB)";
|
|
||||||
|
|
||||||
String createProjectsTable = "CREATE TABLE projects (" +
|
String createProjectsTable = "CREATE TABLE projects (" +
|
||||||
"id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, " +
|
"id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, " +
|
||||||
@ -175,7 +174,7 @@ public class DatabaseService {
|
|||||||
ResultSet rs = stmt.executeQuery();
|
ResultSet rs = stmt.executeQuery();
|
||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
return new UserInfo(
|
return new UserInfo(
|
||||||
rs.getString("username"),
|
rs.getString("name"),
|
||||||
rs.getString("introduction"),
|
rs.getString("introduction"),
|
||||||
rs.getString("interests"),
|
rs.getString("interests"),
|
||||||
rs.getString("experiences"),
|
rs.getString("experiences"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user