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:
parent
0afc567335
commit
ef054e5a30
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user