Browse Source

Bugfix in sql statement.

master
MagicBot 1 year ago
parent
commit
82ad774093
  1. 3
      src/engine/objects/Petition.java

3
src/engine/objects/Petition.java

@ -49,8 +49,7 @@ public class Petition extends AbstractGameObject {
//check that table exists //check that table exists
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_petition` (`petitionTime`=?, `primaryType`=?, `subType`=?, `accountID`=?, `account`=?, " PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_petition` (`petitionTime`=?, `primaryType`=?, `subType`=?, `accountID`=?, `account`=?, `characterID`=?, `character`=?, `location`=?, `message`=?);")) {
+ "`characterID`=?, `character`=?, `location`=?, `message`=?")) {
preparedStatement.setTimestamp(1, new java.sql.Timestamp(System.currentTimeMillis())); preparedStatement.setTimestamp(1, new java.sql.Timestamp(System.currentTimeMillis()));
preparedStatement.setString(2, Enum.PetitionType.values()[this.primaryType].name()); preparedStatement.setString(2, Enum.PetitionType.values()[this.primaryType].name());

Loading…
Cancel
Save