From de71e250e8680918c63d7192aa00cc1935cf87b6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 14 Aug 2023 13:48:33 -0400 Subject: [PATCH] Petition db update including table creation. --- src/engine/db/handlers/dbPetitionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbPetitionHandler.java b/src/engine/db/handlers/dbPetitionHandler.java index f3ce7b4a..3b59ce45 100644 --- a/src/engine/db/handlers/dbPetitionHandler.java +++ b/src/engine/db/handlers/dbPetitionHandler.java @@ -41,7 +41,7 @@ public class dbPetitionHandler extends dbHandlerBase { " PRIMARY KEY (petitionNumber))" + " ENGINE = innodb ROW_FORMAT = DEFAULT;")) { - preparedStatement.executeQuery(); + preparedStatement.executeUpdate(); } catch (SQLException e) { Logger.error(e);