mysql analyser - new changes detection

This commit is contained in:
Jan Prochazka
2021-05-15 21:30:12 +02:00
parent cf5afb43eb
commit 87e75c6ba1
2 changed files with 134 additions and 85 deletions

View File

@@ -119,7 +119,7 @@ export class DatabaseAnalyser {
if (filterIds.length == 0) {
res = res.replace(/=OBJECT_ID_CONDITION/g, ' = 0');
} else {
res = res.replace(/=OBJECT_ID_CONDITION/g, ` in (${filterIds.join(',')})`);
res = res.replace(/=OBJECT_ID_CONDITION/g, ` in (${filterIds.map(x => `'${x}'`).join(',')})`);
}
}
return res;
@@ -154,8 +154,8 @@ export class DatabaseAnalyser {
const snapshot = await this._getFastSnapshot();
if (!snapshot) return null;
// console.log('STRUCTURE', this.structure);
// console.log('SNAPSHOT', snapshot);
console.log('STRUCTURE', this.structure);
console.log('SNAPSHOT', snapshot);
const res = [];
for (const field in snapshot) {