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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metal-orm",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "engines": {
@@ -118,10 +118,10 @@ export class SqlServerDialect extends SqlDialectBase {
118
118
  }).join(', ');
119
119
 
120
120
  const distinct = ast.distinct ? 'DISTINCT ' : '';
121
- const from = this.compileTableSource(ast.from);
121
+ const from = this.compileFrom(ast.from, ctx);
122
122
 
123
123
  const joins = ast.joins.map(j => {
124
- const table = this.compileTableSource(j.table);
124
+ const table = this.compileFrom(j.table, ctx);
125
125
  const cond = this.compileExpression(j.condition, ctx);
126
126
  return `${j.kind} JOIN ${table} ON ${cond}`;
127
127
  }).join(' ');