forked from MagicBane/Server
sieges withstood update to update siegesWithstood column in DB (was previously city name)
This commit is contained in:
@@ -210,7 +210,7 @@ public class dbCityHandler extends dbHandlerBase {
|
||||
public boolean updateSiegesWithstood(City city, int value) {
|
||||
|
||||
try (Connection connection = DbManager.getConnection();
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("UPDATE `obj_city` SET `name`=?"
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("UPDATE `obj_city` SET `siegesWithstood`=?"
|
||||
+ " WHERE `UID` = ?")) {
|
||||
|
||||
preparedStatement.setInt(1, value);
|
||||
|
||||
Reference in New Issue
Block a user