metal-orm 1.0.53 → 1.0.55
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/dialect/mssql/index.ts +2 -2
- package/src/decorators/decorator-metadata.ts +21 -0
- package/src/decorators/index.ts +1 -0
- package/src/index.ts +4 -4
- package/src/orm/orm-session.ts +6 -6
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.
|
|
2580
|
+
const from = this.compileFrom(ast.from, ctx);
|
|
2581
2581
|
const joins = ast.joins.map((j) => {
|
|
2582
|
-
const table = this.
|
|
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(" ");
|