Rank is a reserved word as of MySQL 8.

This commit is contained in:
MobiusDevelopment
2019-08-09 23:21:00 +00:00
parent e258a23f40
commit 0e13e9b61a
15 changed files with 45 additions and 45 deletions

View File

@@ -1972,7 +1972,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2021,7 +2021,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2056,7 +2056,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1864,7 +1864,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1913,7 +1913,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1948,7 +1948,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1864,7 +1864,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1913,7 +1913,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1948,7 +1948,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1864,7 +1864,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1913,7 +1913,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -1948,7 +1948,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1638,7 +1638,7 @@ public class Clan
{ {
try (Connection con = DatabaseFactory.getConnection()) try (Connection con = DatabaseFactory.getConnection())
{ {
PreparedStatement statement = con.prepareStatement("SELECT privs,rank,party FROM clan_privs WHERE clan_id=?"); PreparedStatement statement = con.prepareStatement("SELECT privs,`rank`,party FROM clan_privs WHERE clan_id=?");
statement.setInt(1, _clanId); statement.setInt(1, _clanId);
ResultSet rset = statement.executeQuery(); ResultSet rset = statement.executeQuery();
@@ -1689,7 +1689,7 @@ public class Clan
try (Connection con = DatabaseFactory.getConnection()) try (Connection con = DatabaseFactory.getConnection())
{ {
PreparedStatement statement = con.prepareStatement("REPLACE INTO clan_privs (clan_id,rank,party,privs) VALUES (?,?,?,?)"); PreparedStatement statement = con.prepareStatement("REPLACE INTO clan_privs (clan_id,`rank`,party,privs) VALUES (?,?,?,?)");
statement.setInt(1, _clanId); statement.setInt(1, _clanId);
statement.setInt(2, rank); statement.setInt(2, rank);
statement.setInt(3, 0); statement.setInt(3, 0);
@@ -1724,7 +1724,7 @@ public class Clan
try (Connection con = DatabaseFactory.getConnection()) try (Connection con = DatabaseFactory.getConnection())
{ {
PreparedStatement statement = con.prepareStatement("REPLACE INTO clan_privs (clan_id,rank,party,privs) VALUES (?,?,?,?)"); PreparedStatement statement = con.prepareStatement("REPLACE INTO clan_privs (clan_id,`rank`,party,privs) VALUES (?,?,?,?)");
statement.setInt(1, _clanId); statement.setInt(1, _clanId);
statement.setInt(2, rank); statement.setInt(2, rank);
statement.setInt(3, 0); statement.setInt(3, 0);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2058,7 +2058,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);

View File

@@ -1973,7 +1973,7 @@ public class Clan implements IIdentifiable, INamable
private void restoreRankPrivs() private void restoreRankPrivs()
{ {
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2022,7 +2022,7 @@ public class Clan implements IIdentifiable, INamable
_privs.get(rank).setPrivs(privs); _privs.get(rank).setPrivs(privs);
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);
@@ -2057,7 +2057,7 @@ public class Clan implements IIdentifiable, INamable
_privs.put(rank, new RankPrivs(rank, 0, privs)); _privs.put(rank, new RankPrivs(rank, 0, privs));
try (Connection con = DatabaseFactory.getConnection(); 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 // Retrieve all skills of this PlayerInstance from the database
ps.setInt(1, _clanId); ps.setInt(1, _clanId);