Skip to content

Commit cf3cd90

Browse files
Revert "lemme run this dumb query"
This reverts commit df3bd39.
1 parent df3bd39 commit cf3cd90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/data/h2db/commands/MigrateSubcommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ReplyCallbackAction handleSlashCommandInteraction(SlashCommandInteraction
5454
continue;
5555
}
5656
try (var stmt = con.createStatement()) {
57-
int rowsUpdated = stmt.execute(statements[i]);
57+
int rowsUpdated = stmt.executeUpdate(statements[i]);
5858
event.getChannel().sendMessageFormat(
5959
"Executed statement %d of %d:\n```sql\n%s\n```\nRows Updated: `%d`", i + 1, statements.length, statements[i], rowsUpdated
6060
).queue();

0 commit comments

Comments
 (0)