mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 05:09:48 +08:00
'3549' (#3550)
This commit is contained in:
parent
a1ce54b8e6
commit
d30bc7bcf3
@ -262,7 +262,7 @@ public class SqlTask extends AbstractTask {
|
||||
while (rowCount < LIMIT && resultSet.next()) {
|
||||
ObjectNode mapOfColValues = JSONUtils.createObjectNode();
|
||||
for (int i = 1; i <= num; i++) {
|
||||
mapOfColValues.set(md.getColumnName(i), JSONUtils.toJsonNode(resultSet.getObject(i)));
|
||||
mapOfColValues.set(md.getColumnLabel(i), JSONUtils.toJsonNode(resultSet.getObject(i)));
|
||||
}
|
||||
resultJSONArray.add(mapOfColValues);
|
||||
rowCount++;
|
||||
|
Loading…
Reference in New Issue
Block a user