@mikro-orm/sql 7.1.12-dev.14 → 7.1.12-dev.16
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.
|
@@ -489,7 +489,7 @@ export class SqliteSchemaHelper extends SchemaHelper {
|
|
|
489
489
|
* Foreign key references can only point to tables in the same database.
|
|
490
490
|
*/
|
|
491
491
|
getReferencedTableName(referencedTableName, schema) {
|
|
492
|
-
const [
|
|
492
|
+
const [, tableName] = this.splitTableName(referencedTableName);
|
|
493
493
|
// Strip any schema prefix - SQLite REFERENCES clause doesn't support it
|
|
494
494
|
return tableName;
|
|
495
495
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sql",
|
|
3
|
-
"version": "7.1.12-dev.
|
|
3
|
+
"version": "7.1.12-dev.16",
|
|
4
4
|
"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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.1.11"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.1.12-dev.
|
|
56
|
+
"@mikro-orm/core": "7.1.12-dev.16"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|
|
@@ -97,7 +97,6 @@ export class QueryBuilderHelper {
|
|
|
97
97
|
// Only apply TPT resolution when `a` is an actual table alias (in aliasMap),
|
|
98
98
|
// not when it's an embedded property name like 'profile1.identity.links'
|
|
99
99
|
const isTableAlias = !!this.#aliasMap[a];
|
|
100
|
-
const baseAlias = isTableAlias ? a : this.#alias;
|
|
101
100
|
const resolvedAlias = isTableAlias ? this.getTPTAliasForProperty(prop?.name ?? f, a) : this.#alias;
|
|
102
101
|
const aliasPrefix = isTableNameAliasRequired ? resolvedAlias + '.' : '';
|
|
103
102
|
const fkIdx2 = prop?.fieldNames.findIndex(name => name === f) ?? -1;
|