Rank is a reserved word as of MySQL 8.
This commit is contained in:
@@ -1972,7 +1972,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);
|
||||
@@ -2021,7 +2021,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);
|
||||
@@ -2056,7 +2056,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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -1864,7 +1864,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);
|
||||
@@ -1913,7 +1913,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);
|
||||
@@ -1948,7 +1948,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);
|
||||
|
@@ -1864,7 +1864,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);
|
||||
@@ -1913,7 +1913,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);
|
||||
@@ -1948,7 +1948,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);
|
||||
|
@@ -1864,7 +1864,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);
|
||||
@@ -1913,7 +1913,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);
|
||||
@@ -1948,7 +1948,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);
|
||||
|
@@ -1638,7 +1638,7 @@ public class Clan
|
||||
{
|
||||
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);
|
||||
ResultSet rset = statement.executeQuery();
|
||||
|
||||
@@ -1689,7 +1689,7 @@ public class Clan
|
||||
|
||||
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(2, rank);
|
||||
statement.setInt(3, 0);
|
||||
@@ -1724,7 +1724,7 @@ public class Clan
|
||||
|
||||
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(2, rank);
|
||||
statement.setInt(3, 0);
|
||||
|
@@ -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);
|
||||
@@ -2058,7 +2058,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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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