1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 12:35:28 +01:00

Lets allow 4 bytes of utf-8 chars

This commit is contained in:
montlikadani 2020-03-01 19:15:21 +01:00
parent 0afc567335
commit ef054e5a30
2 changed files with 3 additions and 6 deletions

View File

@ -1160,12 +1160,9 @@ public abstract class JobsDAO {
}
for (Job one : Jobs.getJobs()) {
if (one.getId() != 0)
continue;
this.recordNewJobName(one);
if (one.getId() == 0)
recordNewJobName(one);
}
return;
}
/**

View File

@ -13,7 +13,7 @@ public class JobsMySQL extends JobsDAO {
JobsMySQL(Jobs plugin, String hostname, String database, String username, String password, String prefix, boolean certificate, boolean ssl, boolean autoReconnect) {
super(plugin, "com.mysql.jdbc.Driver", "jdbc:mysql://" + hostname + "/" + database
+ "?maxReconnects=1&useUnicode=true&characterEncoding=UTF-8&autoReconnect=" + autoReconnect + "&useSSL=" + ssl
+ "?maxReconnects=1&useUnicode=true&character_set_server=utf8mb4&autoReconnect=" + autoReconnect + "&useSSL=" + ssl
+ "&verifyServerCertificate=" + certificate, username, password, prefix);
this.database = database;
this.setDbType(DataBaseType.MySQL);