correct right parsing

This commit is contained in:
Edouard DUPIN 2022-05-24 01:32:51 +02:00
parent 0badc1c7b6
commit 593abab525

View File

@ -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;