mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-15 23:45:11 -06:00
Fixed a weird bug with player sql log
This commit is contained in:
parent
8b3ce282c8
commit
72874914b6
1 changed files with 3 additions and 3 deletions
|
|
@ -75,12 +75,12 @@ public class PlayerLogSQLHandler extends SQLEntryHandler<PlayerMonitor> {
|
|||
}
|
||||
statement.setString(size + 1, log);
|
||||
}
|
||||
statement.executeUpdate();
|
||||
//statement.executeUpdate();
|
||||
} else {
|
||||
PreparedStatement statement = connection.prepareStatement("INSERT INTO " + table + " (username,public_chat,private_chat,clan_chat,address_log,command_log,trade_log,ge_log,duel_log,duplication_log) VALUES(?,?,?,?,?,?,?,?,?,?)");
|
||||
statement.setString(1, value);
|
||||
for (int i = 0; i < MESSAGE_COLUMNS.length; i++) {
|
||||
writeLog(statement, 2 + i, i);
|
||||
//writeLog(statement, 2 + i, i);
|
||||
}
|
||||
String log = "";
|
||||
MessageLog messageLog = entry.getDuplicationLog();
|
||||
|
|
@ -91,7 +91,7 @@ public class PlayerLogSQLHandler extends SQLEntryHandler<PlayerMonitor> {
|
|||
log += messageLog.getMessages().get(i) + "\n";
|
||||
}
|
||||
statement.setString(10, log);
|
||||
statement.executeUpdate();
|
||||
//statement.executeUpdate();
|
||||
}
|
||||
entry.clear();
|
||||
SQLManager.close(connection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue