mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-02 14:37:45 +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.ExecStatement;
|
||||||
import com.djrapitops.plan.storage.database.transactions.Executable;
|
import com.djrapitops.plan.storage.database.transactions.Executable;
|
||||||
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
@ -50,7 +51,7 @@ public class StorePlayerStringResultTransaction extends ThrowawayTransaction {
|
|||||||
this.providerName = provider.getProviderInformation().getName();
|
this.providerName = provider.getProviderInformation().getName();
|
||||||
this.serverUUID = parameters.getServerUUID();
|
this.serverUUID = parameters.getServerUUID();
|
||||||
this.playerUUID = parameters.getPlayerUUID();
|
this.playerUUID = parameters.getPlayerUUID();
|
||||||
this.value = value;
|
this.value = StringUtils.truncate(value, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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.ExecStatement;
|
||||||
import com.djrapitops.plan.storage.database.transactions.Executable;
|
import com.djrapitops.plan.storage.database.transactions.Executable;
|
||||||
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
@ -47,7 +48,7 @@ public class StoreServerStringResultTransaction extends ThrowawayTransaction {
|
|||||||
this.pluginName = provider.getProviderInformation().getPluginName();
|
this.pluginName = provider.getProviderInformation().getPluginName();
|
||||||
this.providerName = provider.getProviderInformation().getName();
|
this.providerName = provider.getProviderInformation().getName();
|
||||||
this.serverUUID = parameters.getServerUUID();
|
this.serverUUID = parameters.getServerUUID();
|
||||||
this.value = value;
|
this.value = StringUtils.truncate(value, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user