Browse Source

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

pull/221/head
xuyuxiang 5 months ago
parent
commit
ae92f96e6c
  1. 2
      snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java

2
snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java

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

Loading…
Cancel
Save