loadVersionComment() add logger.warn info (#4943)

This commit is contained in:
e345
2023-11-09 15:31:33 +08:00
committed by GitHub
parent fc3cfc5c0c
commit c65477d97a

View File

@@ -578,8 +578,10 @@ public class MysqlConnection implements ErosaConnection {
rs = query("select @@version_comment");
List<String> columnValues = rs.getFieldValues();
if (columnValues != null && columnValues.size() >= 1 && columnValues.get(0) != null){
logger.warn("--> loadVersionComment(), select @@version_comment : " + columnValues.get(0));
if(StringUtils.containsIgnoreCase(columnValues.get(0),"Percona")){
compatiablePercona = true;
logger.warn("--> loadVersionComment(), set compatiablePercona = true");
}
}
} catch (Throwable e) {