duckdb analyser fixes

This commit is contained in:
Jan Prochazka
2025-04-28 14:07:42 +02:00
parent 09b43a8e95
commit 1f68f62689
6 changed files with 21 additions and 17 deletions

View File

@@ -92,10 +92,10 @@ export class DatabaseAnalyser {
this.singleObjectFilter = { ...name, typeField };
await this._computeSingleObjectId();
const res = this.addEngineField(await this._runAnalysis());
// console.log('SINGLE OBJECT RES', res);
// console.log('SINGLE OBJECT RES', JSON.stringify(res, null, 2));
const obj =
res[typeField]?.length == 1
? res[typeField][0]
? res[typeField]?.find(x => x.pureName.toLowerCase() == name.pureName.toLowerCase())
: res[typeField]?.find(x => x.pureName == name.pureName && x.schemaName == name.schemaName);
// console.log('SINGLE OBJECT', obj);
return obj;