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.js CHANGED
@@ -2355,9 +2355,9 @@ var SqlServerDialect = class extends SqlDialectBase {
2355
2355
  return expr;
2356
2356
  }).join(", ");
2357
2357
  const distinct = ast.distinct ? "DISTINCT " : "";
2358
- const from = this.compileTableSource(ast.from);
2358
+ const from = this.compileFrom(ast.from, ctx);
2359
2359
  const joins = ast.joins.map((j) => {
2360
- const table = this.compileTableSource(j.table);
2360
+ const table = this.compileFrom(j.table, ctx);
2361
2361
  const cond = this.compileExpression(j.condition, ctx);
2362
2362
  return `${j.kind} JOIN ${table} ON ${cond}`;
2363
2363
  }).join(" ");