correct right parsing
This commit is contained in:
parent
0badc1c7b6
commit
593abab525
@ -49,11 +49,9 @@ public class User {
|
||||
this.lastConnection = rs.getTimestamp(iii++);
|
||||
this.login = rs.getString(iii++);
|
||||
this.email = rs.getString(iii++);
|
||||
String adminValue = rs.getString(iii++);
|
||||
System.out.println("Admin value = '" + adminValue + "'");
|
||||
this.admin = Boolean.getBoolean(adminValue);
|
||||
this.blocked = Boolean.getBoolean(rs.getString(iii++));
|
||||
this.removed = Boolean.getBoolean(rs.getString(iii++));
|
||||
this.admin = "TRUE".equals(rs.getString(iii++));
|
||||
this.blocked = "TRUE".equals(rs.getString(iii++));
|
||||
this.removed = "TRUE".equals(rs.getString(iii++));
|
||||
this.avatar = rs.getLong(iii++);
|
||||
if (rs.wasNull()) {
|
||||
this.avatar = null;
|
||||
|
Loading…
Reference in New Issue
Block a user