Rank is a reserved word as of MySQL 8.
This commit is contained in:
@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
|
||||
private void restoreRankPrivs()
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("SELECT privs,rank,party FROM clan_privs WHERE clan_id=?"))
|
||||
PreparedStatement ps = con.prepareStatement("SELECT privs,`rank`,party FROM clan_privs WHERE clan_id=?"))
|
||||
{
|
||||
// Retrieve all skills of this PlayerInstance from the database
|
||||
ps.setInt(1, _clanId);
|
||||
@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
|
||||
_privs.get(rank).setPrivs(privs);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("REPLACE INTO clan_privs (clan_id,rank,party,privs) VALUES (?,?,?,?)"))
|
||||
PreparedStatement ps = con.prepareStatement("REPLACE INTO clan_privs (clan_id,`rank`,party,privs) VALUES (?,?,?,?)"))
|
||||
{
|
||||
// Retrieve all skills of this PlayerInstance from the database
|
||||
ps.setInt(1, _clanId);
|
||||
@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
|
||||
_privs.put(rank, new RankPrivs(rank, 0, privs));
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("REPLACE INTO clan_privs (clan_id,rank,party,privs) VALUES (?,?,?,?)"))
|
||||
PreparedStatement ps = con.prepareStatement("REPLACE INTO clan_privs (clan_id,`rank`,party,privs) VALUES (?,?,?,?)"))
|
||||
{
|
||||
// Retrieve all skills of this PlayerInstance from the database
|
||||
ps.setInt(1, _clanId);
|
||||
|
Reference in New Issue
Block a user