@mikro-orm/sql
Advanced tools
+2
-2
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.1.12-dev.16", | ||
| "version": "7.1.12-dev.17", | ||
| "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.1.12-dev.16" | ||
| "@mikro-orm/core": "7.1.12-dev.17" | ||
| }, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -251,3 +251,9 @@ import { ALIAS_REPLACEMENT, ALIAS_REPLACEMENT_RE, ArrayType, JsonType, inspect, isRaw, LockMode, OptimisticLockError, QueryOperator, QueryOrderNumeric, raw, Raw, QueryHelper, ReferenceKind, Utils, ValidationError, } from '@mikro-orm/core'; | ||
| const params = []; | ||
| schema = join.schema === '*' ? schema : (join.schema ?? schemaOverride); | ||
| if (join.prop.name === '__subquery__') { | ||
| // bare table/CTE references (`sql.ref()` joins) keep their literal name, only an explicit schema applies | ||
| schema = join.schema === '*' ? undefined : join.schema; | ||
| } | ||
| else { | ||
| schema = join.schema === '*' ? schema : (join.schema ?? schemaOverride); | ||
| } | ||
| if (schema && schema !== this.#platform.getDefaultSchemaName()) { | ||
@@ -254,0 +260,0 @@ table = `${schema}.${table}`; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1076076
0.06%22408
0.03%