@mikro-orm/mssql 6.6.13 → 6.6.14-dev.1
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/MsSqlPlatform.js +2 -2
- package/package.json +3 -3
package/MsSqlPlatform.js
CHANGED
|
@@ -145,7 +145,7 @@ class MsSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
145
145
|
getSearchJsonPropertyKey(path, type, aliased, value) {
|
|
146
146
|
const [a, ...b] = path;
|
|
147
147
|
/* istanbul ignore next */
|
|
148
|
-
const root =
|
|
148
|
+
const root = aliased ? `[${knex_1.ALIAS_REPLACEMENT}].${this.quoteIdentifier(a)}` : this.quoteIdentifier(a);
|
|
149
149
|
const types = {
|
|
150
150
|
boolean: 'bit',
|
|
151
151
|
};
|
|
@@ -171,7 +171,7 @@ class MsSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
171
171
|
return true;
|
|
172
172
|
}
|
|
173
173
|
quoteIdentifier(id) {
|
|
174
|
-
return `[${id.toString().replace('.', `].[`)}]`;
|
|
174
|
+
return `[${id.toString().replaceAll(']', ']]').replace('.', `].[`)}]`;
|
|
175
175
|
}
|
|
176
176
|
escape(value) {
|
|
177
177
|
if (value instanceof UnicodeStringType_1.UnicodeString) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mssql",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.14-dev.1",
|
|
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",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "6.6.
|
|
61
|
+
"@mikro-orm/knex": "6.6.14-dev.1",
|
|
62
62
|
"tedious": "19.2.1",
|
|
63
63
|
"tsqlstring": "1.0.1"
|
|
64
64
|
},
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.6.13"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "
|
|
69
|
+
"@mikro-orm/core": "6.6.14-dev.1"
|
|
70
70
|
}
|
|
71
71
|
}
|