use of com.cubrid.cubridmanager.core.cubrid.table.task.GetDbCollationTask in project cubrid-manager by CUBRID.
the class CubridDatabaseLoader method setDbCollation.
private void setDbCollation(CubridDatabase database) {
DatabaseInfo databaseInfo = database.getDatabaseInfo();
boolean supportCharset = CompatibleUtil.isSupportCreateDBByCharset(databaseInfo);
if (!supportCharset || !databaseInfo.getServerInfo().isConnected()) {
return;
}
GetDbCollationTask getDbCollationTask = new GetDbCollationTask(databaseInfo);
getDbCollationTask.execute();
if (getDbCollationTask.isSuccess()) {
databaseInfo.setCollation(getDbCollationTask.getCollation());
}
}
Aggregations