【修复】修复判断resultSet时导致的游标偏离的问题

pull/221/head
xuyuxiang 6 months ago
parent aad7cafe03
commit ae92f96e6c

@ -329,7 +329,7 @@ public class GenBasicServiceImpl extends ServiceImpl<GenBasicMapper, GenBasic> i
} }
List<GenBasicTableColumnResult> columns = new ArrayList<>(); List<GenBasicTableColumnResult> columns = new ArrayList<>();
rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName(), "%"); rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName(), "%");
if(!rs.next()) { if(!rs.isBeforeFirst()) {
rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName().toLowerCase(), "%"); rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName().toLowerCase(), "%");
} }
while (rs.next()) { while (rs.next()) {

Loading…
Cancel
Save