@mikro-orm/knex 6.2.6-dev.15 → 6.2.6-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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.2.6-dev.
|
|
3
|
+
"version": "6.2.6-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
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.2.5"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.2.6-dev.
|
|
69
|
+
"@mikro-orm/core": "6.2.6-dev.16"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -542,7 +542,8 @@ class QueryBuilderHelper {
|
|
|
542
542
|
if (returningProps.length > 0) {
|
|
543
543
|
qb.returning(returningProps.flatMap(prop => {
|
|
544
544
|
if (prop.hasConvertToJSValueSQL) {
|
|
545
|
-
const
|
|
545
|
+
const aliased = this.platform.quoteIdentifier(prop.fieldNames[0]);
|
|
546
|
+
const sql = prop.customType.convertToJSValueSQL(aliased, this.platform) + ' as ' + this.platform.quoteIdentifier(prop.fieldNames[0]);
|
|
546
547
|
return [this.knex.raw(sql)];
|
|
547
548
|
}
|
|
548
549
|
return prop.fieldNames;
|