|
|
|
@ -155,6 +155,16 @@ public class SqlExecutor {
|
|
|
|
|
columnBuilder.value(rs.getString(columnIndex));
|
|
|
|
|
} else if (columnType == Types.NUMERIC) {
|
|
|
|
|
columnBuilder.value(rs.getLong(columnIndex));
|
|
|
|
|
} else if (columnType == Types.DATE) {
|
|
|
|
|
columnBuilder.value(rs.getDate(columnIndex));
|
|
|
|
|
} else if (columnType == Types.TIME) {
|
|
|
|
|
columnBuilder.value(rs.getTime(columnIndex));
|
|
|
|
|
} else if (columnType == Types.TIMESTAMP) {
|
|
|
|
|
columnBuilder.value(rs.getTimestamp(columnIndex));
|
|
|
|
|
} else if (columnType == Types.CLOB) {
|
|
|
|
|
columnBuilder.value(rs.getClob(columnIndex).getSubString(1, 100));
|
|
|
|
|
} else if (columnType == Types.BLOB) {
|
|
|
|
|
columnBuilder.value("[BLOB]");
|
|
|
|
|
} else {
|
|
|
|
|
String message = String.format("Unhandled column type <%s>. Defaulting to String", rs.getMetaData().getColumnTypeName(columnIndex));
|
|
|
|
|
log.warn(message);
|
|
|
|
|