Add operation log

This commit is contained in:
SwallowGG
2023-10-17 18:10:58 +08:00
parent c720c0fd48
commit 5bddbe5fe1
2 changed files with 10 additions and 1 deletions

View File

@ -253,7 +253,12 @@ public class MysqlMetaData extends DefaultMetaService implements MetaData {
tableIndexColumn.setCollation(resultSet.getString("Collation"));
tableIndexColumn.setCardinality(resultSet.getLong("Cardinality"));
tableIndexColumn.setSubPart(resultSet.getLong("Sub_part"));
tableIndexColumn.setAscOrDesc(resultSet.getString("Collation"));
String collation = resultSet.getString("Collation");
if ("a".equalsIgnoreCase(collation)) {
tableIndexColumn.setAscOrDesc("ASC");
} else if ("d".equalsIgnoreCase(collation)) {
tableIndexColumn.setAscOrDesc("DESC");
}
return tableIndexColumn;
}