修复tinyint
This commit is contained in:
@@ -41,14 +41,11 @@ public class MySQLExecutor {
|
||||
String columnName = metaData.getColumnLabel(i);
|
||||
Object columnValue = resultSet.getObject(i);
|
||||
int columnType = metaData.getColumnType(i);
|
||||
if (columnType == Types.TINYINT) {
|
||||
if (columnType == Types.BIT) {
|
||||
row.put(columnName, resultSet.getInt(columnName));
|
||||
} else {
|
||||
row.put(columnName, columnValue);
|
||||
}
|
||||
if (columnName.equalsIgnoreCase("retry")) {
|
||||
row.put("retryType", columnType);
|
||||
}
|
||||
if (i == 1) {
|
||||
columnNameList.add(columnName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user