From 82ad774093a09e7f96c96d9924d02358dc8b2c0e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 14 Aug 2023 12:56:23 -0400 Subject: [PATCH] Bugfix in sql statement. --- src/engine/objects/Petition.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/objects/Petition.java b/src/engine/objects/Petition.java index 48fc3b24..1e43c1c8 100644 --- a/src/engine/objects/Petition.java +++ b/src/engine/objects/Petition.java @@ -49,8 +49,7 @@ public class Petition extends AbstractGameObject { //check that table exists - PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_petition` (`petitionTime`=?, `primaryType`=?, `subType`=?, `accountID`=?, `account`=?, " - + "`characterID`=?, `character`=?, `location`=?, `message`=?")) { + PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_petition` (`petitionTime`=?, `primaryType`=?, `subType`=?, `accountID`=?, `account`=?, `characterID`=?, `character`=?, `location`=?, `message`=?);")) { preparedStatement.setTimestamp(1, new java.sql.Timestamp(System.currentTimeMillis())); preparedStatement.setString(2, Enum.PetitionType.values()[this.primaryType].name());