mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 23:06:01 +00:00
skip condition in query designer, when parsing failed
This commit is contained in:
@@ -85,6 +85,7 @@ 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;
|
||||||
|
|
||||||
|
try {
|
||||||
const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer));
|
const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer));
|
||||||
if (condition) {
|
if (condition) {
|
||||||
select.where = mergeConditions(
|
select.where = mergeConditions(
|
||||||
@@ -99,6 +100,10 @@ export class DesignerQueryDumper {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
// condition is skipped
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user