mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 06:06:01 +00:00
duckdb analyser fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user