Browse Source

Column name updated.

feature-workorder
MagicBot 1 year ago
parent
commit
e948da95b5
  1. 6
      src/engine/db/handlers/dbMobHandler.java

6
src/engine/db/handlers/dbMobHandler.java

@ -127,13 +127,13 @@ public class dbMobHandler extends dbHandlerBase {
} }
} }
public boolean ADD_TO_GUARDS(final long captainUID, final String name) { public boolean ADD_TO_GUARDS(final long captainUID, final String minionName) {
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `name`) VALUES (?,?)")) { PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `minionName`) VALUES (?,?)")) {
preparedStatement.setLong(1, captainUID); preparedStatement.setLong(1, captainUID);
preparedStatement.setString(2, name); preparedStatement.setString(2, minionName);
return (preparedStatement.executeUpdate() > 0); return (preparedStatement.executeUpdate() > 0);

Loading…
Cancel
Save