metal-orm 1.0.53 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2577,9 +2577,9 @@ var SqlServerDialect = class extends SqlDialectBase {
2577
2577
  return expr;
2578
2578
  }).join(", ");
2579
2579
  const distinct = ast.distinct ? "DISTINCT " : "";
2580
- const from = this.compileTableSource(ast.from);
2580
+ const from = this.compileFrom(ast.from, ctx);
2581
2581
  const joins = ast.joins.map((j) => {
2582
- const table = this.compileTableSource(j.table);
2582
+ const table = this.compileFrom(j.table, ctx);
2583
2583
  const cond = this.compileExpression(j.condition, ctx);
2584
2584
  return `${j.kind} JOIN ${table} ON ${cond}`;
2585
2585
  }).join(" ");