@mikro-orm/knex 6.4.17-dev.40 → 6.4.17-dev.42
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/AbstractSqlDriver.js +4 -4
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -404,14 +404,14 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
404
404
|
value = this.mapDataToFieldNames(value, false, prop.embeddedProps, options.convertCustomTypes);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
if (options.convertCustomTypes && prop.customType) {
|
|
408
|
-
params.push(prop.customType.convertToDatabaseValue(value, this.platform, { key: prop.name, mode: 'query-data' }));
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
407
|
if (typeof value === 'undefined' && this.platform.usesDefaultKeyword()) {
|
|
412
408
|
params.push((0, core_1.raw)('default'));
|
|
413
409
|
return;
|
|
414
410
|
}
|
|
411
|
+
if (options.convertCustomTypes && prop.customType) {
|
|
412
|
+
params.push(prop.customType.convertToDatabaseValue(value, this.platform, { key: prop.name, mode: 'query-data' }));
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
415
|
params.push(value);
|
|
416
416
|
};
|
|
417
417
|
if (fields.length > 0 || this.platform.usesDefaultKeyword()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.4.17-dev.
|
|
3
|
+
"version": "6.4.17-dev.42",
|
|
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,7 +66,7 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.4.16"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.4.17-dev.
|
|
69
|
+
"@mikro-orm/core": "6.4.17-dev.42",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|