Skip to content

Commit

Permalink
skjdajs
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed Sep 24, 2023
1 parent 2c3f1b6 commit 85f4ab8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ public void insertBatchItemInfos(ItemInfo[] itemInfos) {
}

try (PreparedStatement preparedStatement = connection.prepareStatement(
"INSERT IGNORE INTO ItemInfo (item1, item2, item3, item4, item1Level, item2Level, item3Level, item4Level, won, matchId, champId) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")) {
"INSERT IGNORE INTO ItemInfo (item1, item2, item3, item4, " +
"item1Level, item2Level, item3Level, item4Level, matchId, champId) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")) {

for (ItemInfo itemInfo : itemInfos) {
preparedStatement.setInt(1, itemInfo.getItem1());
Expand Down Expand Up @@ -245,8 +246,9 @@ public void insertBatchDeckInfos(DeckInfo[] deckInfos) {
}

try (PreparedStatement preparedStatement = connection.prepareStatement(
"INSERT IGNORE INTO DeckInfo (talentId, deckCard1, deckCard2, deckCard3, deckCard4, deckCard5, deckCard1Level, deckCard2Level, deckCard3Level, deckCard4Level, deckCard5Level, won, matchId, champId)" +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")) {
"INSERT IGNORE INTO DeckInfo (talentId, deckCard1, deckCard2, deckCard3, deckCard4, deckCard5, " +
"deckCard1Level, deckCard2Level, deckCard3Level, deckCard4Level, deckCard5Level, matchId, champId)" +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")) {
for(DeckInfo deckInfo : deckInfos) {
preparedStatement.setInt(1, deckInfo.getTalentId());
preparedStatement.setInt(2, deckInfo.getDeckCard1());
Expand Down Expand Up @@ -364,7 +366,6 @@ public void createDeckInfoTable() {
+ "deckCard3Level INT,"
+ "deckCard4Level INT,"
+ "deckCard5Level INT,"
+ "won INT,"
+ "matchId INT,"
+ "champId INT,"
+ "FOREIGN KEY (matchId) REFERENCES GameInfo(matchId)"
Expand All @@ -385,7 +386,6 @@ public void createItemInfoTable() {
+ "item2Level INT,"
+ "item3Level INT,"
+ "item4Level INT,"
+ "won INT,"
+ "matchId INT,"
+ "champId INT,"
+ "FOREIGN KEY (matchId) REFERENCES GameInfo(matchId)"
Expand Down

0 comments on commit 85f4ab8

Please sign in to comment.