@mikro-orm/mariadb 7.0.0-dev.76 → 7.0.0-dev.78
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/MariaDbQueryBuilder.js +2 -3
- package/package.json +3 -3
package/MariaDbQueryBuilder.js
CHANGED
|
@@ -41,7 +41,7 @@ export class MariaDbQueryBuilder extends QueryBuilder {
|
|
|
41
41
|
// @ts-ignore
|
|
42
42
|
subQuery.finalized = true;
|
|
43
43
|
const innerQuery = subQuery.as(this.mainAlias.aliasName).clear('select').select(pks);
|
|
44
|
-
/* v8 ignore
|
|
44
|
+
/* v8 ignore next */
|
|
45
45
|
if (addToSelect.length > 0) {
|
|
46
46
|
addToSelect.forEach(prop => {
|
|
47
47
|
const field = this._fields.find(field => {
|
|
@@ -62,7 +62,6 @@ export class MariaDbQueryBuilder extends QueryBuilder {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
/* v8 ignore stop */
|
|
66
65
|
// multiple sub-queries are needed to get around mysql limitations with order by + limit + where in + group by (o.O)
|
|
67
66
|
// https://stackoverflow.com/questions/17892762/mysql-this-version-of-mysql-doesnt-yet-support-limit-in-all-any-some-subqu
|
|
68
67
|
const subSubQuery = this.platform.createNativeQueryBuilder();
|
|
@@ -86,7 +85,7 @@ export class MariaDbQueryBuilder extends QueryBuilder {
|
|
|
86
85
|
addPath(this._populate);
|
|
87
86
|
for (const [key, join] of Object.entries(this._joins)) {
|
|
88
87
|
const path = join.path?.replace(/\[populate]|\[pivot]|:ref/g, '').replace(new RegExp(`^${meta.className}.`), '');
|
|
89
|
-
/* v8 ignore next
|
|
88
|
+
/* v8 ignore next */
|
|
90
89
|
if (!populate.has(path ?? '') && !orderByAliases.includes(join.alias)) {
|
|
91
90
|
delete this._joins[key];
|
|
92
91
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mariadb",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.78",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/mysql": "7.0.0-dev.
|
|
53
|
+
"@mikro-orm/mysql": "7.0.0-dev.78"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@mikro-orm/core": "^6.6.1",
|
|
57
57
|
"kysely": "0.28.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
60
|
+
"@mikro-orm/core": "7.0.0-dev.78",
|
|
61
61
|
"kysely": "*"
|
|
62
62
|
}
|
|
63
63
|
}
|