mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-30 13:08:00 +01:00
Truncate Extension String values
Fixed regression bug from refactoring Affects issues: - Fixed #1333, #1338
This commit is contained in:
parent
feb54c632e
commit
03bb211c51
@ -22,6 +22,7 @@ import com.djrapitops.plan.storage.database.sql.tables.ExtensionProviderTable;
|
||||
import com.djrapitops.plan.storage.database.transactions.ExecStatement;
|
||||
import com.djrapitops.plan.storage.database.transactions.Executable;
|
||||
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
@ -50,7 +51,7 @@ public class StorePlayerStringResultTransaction extends ThrowawayTransaction {
|
||||
this.providerName = provider.getProviderInformation().getName();
|
||||
this.serverUUID = parameters.getServerUUID();
|
||||
this.playerUUID = parameters.getPlayerUUID();
|
||||
this.value = value;
|
||||
this.value = StringUtils.truncate(value, 50);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -22,6 +22,7 @@ import com.djrapitops.plan.storage.database.sql.tables.ExtensionProviderTable;
|
||||
import com.djrapitops.plan.storage.database.transactions.ExecStatement;
|
||||
import com.djrapitops.plan.storage.database.transactions.Executable;
|
||||
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
@ -47,7 +48,7 @@ public class StoreServerStringResultTransaction extends ThrowawayTransaction {
|
||||
this.pluginName = provider.getProviderInformation().getPluginName();
|
||||
this.providerName = provider.getProviderInformation().getName();
|
||||
this.serverUUID = parameters.getServerUUID();
|
||||
this.value = value;
|
||||
this.value = StringUtils.truncate(value, 50);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user