This commit is contained in:
serge-rider
2020-09-02 11:33:27 +03:00
parent 7f74c3be90
commit f23be4fc6e
@@ -515,7 +515,6 @@ public class WebSQLProcessor {
@Override
public void fetchEnd(DBCSession session, DBCResultSet resultSet) throws DBCException {
webResultSet.setRows(rows.toArray(new Object[0][]));
DBSEntity entity = dataContainer instanceof DBSEntity ? (DBSEntity) dataContainer : null;
@@ -525,12 +524,19 @@ public class WebSQLProcessor {
log.error("Error binding attributes", e);
}
convertComplexValuesToRelationalView();
webResultSet.setColumns(bindings);
webResultSet.setRows(rows.toArray(new Object[0][]));
WebSQLResultsInfo resultsInfo = contextInfo.saveResult(dataContainer, bindings);
webResultSet.setResultsInfo(resultsInfo);
}
private void convertComplexValuesToRelationalView() {
// Here we get leaf attributes and refetch them into plain tabl structure
}
@Override
public void close() {
rows.clear();