Fixed CursedWeapon insert query error.

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2017-04-19 20:19:34 +00:00
parent 9b51a1ec94
commit deed32c64e
2 changed files with 2 additions and 2 deletions

View File

@@ -479,7 +479,7 @@ public class CursedWeapon implements INamable
try (Connection con = DatabaseFactory.getInstance().getConnection();
PreparedStatement del = con.prepareStatement("DELETE FROM cursed_weapons WHERE itemId = ?");
PreparedStatement ps = con.prepareStatement("INSERT INTO cursed_weapons (itemId, charId, reputation, playerPkKills, nbKills, endTime) VALUES (?, ?, ?, ?, ?, ?)"))
PreparedStatement ps = con.prepareStatement("INSERT INTO cursed_weapons (itemId, charId, playerReputation, playerPkKills, nbKills, endTime) VALUES (?, ?, ?, ?, ?, ?)"))
{
// Delete previous datas
del.setInt(1, _itemId);