Fixed probable monster race duplicate entry warning.

This commit is contained in:
MobiusDevelopment 2020-09-01 21:14:55 +00:00
parent be5d524d13
commit 22385c6944
19 changed files with 19 additions and 19 deletions

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -408,7 +408,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -408,7 +408,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());

View File

@ -442,7 +442,7 @@ public class MonsterRace
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement = con.prepareStatement("INSERT INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
PreparedStatement statement = con.prepareStatement("REPLACE INTO mdt_history (race_id, first, second, odd_rate) VALUES (?,?,?,?)");
statement.setInt(1, history.getRaceId());
statement.setInt(2, history.getFirst());
statement.setInt(3, history.getSecond());