fixes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jusax23 2023-02-18 15:06:31 +01:00
parent 6aa6791699
commit d342aab539
2 changed files with 6 additions and 1 deletions

View file

@ -42,6 +42,9 @@ export class TableAlias {
this.dbLangTableAttributes[a.name] = attrAlias; this.dbLangTableAttributes[a.name] = attrAlias;
} }
} }
serializeAlias(hander: Handler) {
return this.dbLangTableInstance.serialize(hander) + " " + this.toString(hander);
}
serialize(handler: Handler) { serialize(handler: Handler) {
return this.toString(handler); return this.toString(handler);
} }

View file

@ -241,8 +241,10 @@ export class Handler {
builder.addCode(` from `); builder.addCode(` from `);
if (q.from == null) { if (q.from == null) {
builder.addCode(" DUAL"); builder.addCode(" DUAL");
} else if (q.from instanceof Table || q.from instanceof TableAlias) { } else if (q.from instanceof Table) {
builder.addCode(q.from.serialize(handler)); builder.addCode(q.from.serialize(handler));
} else if (q.from instanceof TableAlias) {
builder.addCode(q.from.serializeAlias(handler));
} else { } else {
builder.append(q.from.serialize(handler)); builder.append(q.from.serialize(handler));
} }