mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 20:46:00 +00:00
skip condition in query designer, when parsing failed
This commit is contained in:
@@ -85,19 +85,24 @@ export class DesignerQueryDumper {
|
|||||||
if (!table) continue;
|
if (!table) continue;
|
||||||
if (!tables.find(x => x.designerId == table.designerId)) continue;
|
if (!tables.find(x => x.designerId == table.designerId)) continue;
|
||||||
|
|
||||||
const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer));
|
try {
|
||||||
if (condition) {
|
const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer));
|
||||||
select.where = mergeConditions(
|
if (condition) {
|
||||||
select.where,
|
select.where = mergeConditions(
|
||||||
_.cloneDeepWith(condition, expr => {
|
select.where,
|
||||||
if (expr.exprType == 'placeholder')
|
_.cloneDeepWith(condition, expr => {
|
||||||
return {
|
if (expr.exprType == 'placeholder')
|
||||||
exprType: 'column',
|
return {
|
||||||
columnName: column.columnName,
|
exprType: 'column',
|
||||||
source: findQuerySource(this.designer, column.designerId),
|
columnName: column.columnName,
|
||||||
};
|
source: findQuerySource(this.designer, column.designerId),
|
||||||
})
|
};
|
||||||
);
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
// condition is skipped
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user