Browse Source

sql parm count fix

combat-2
MagicBot 8 months ago
parent
commit
47a93f6545
  1. 2
      src/engine/db/handlers/dbCityHandler.java

2
src/engine/db/handlers/dbCityHandler.java

@ -58,7 +58,7 @@ public class dbCityHandler extends dbHandlerBase { @@ -58,7 +58,7 @@ public class dbCityHandler extends dbHandlerBase {
ArrayList<AbstractGameObject> objectList = new ArrayList<>();
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("CALL `city_CREATE`(?, ?, ?, ?, ?, ?, ?, ?, ?,?,?)")) {
PreparedStatement preparedStatement = connection.prepareStatement("CALL `city_CREATE`(?, ?, ?, ?, ?, ?, ?, ?,?,?)")) {
preparedStatement.setLong(1, ownerID); //objectUUID of owning player
preparedStatement.setLong(2, parentZoneID); //objectUUID of parent (continent) zone

Loading…
Cancel
Save