@mikro-orm/mssql 7.0.14-dev.10 → 7.0.14-dev.11
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
|
@@ -150,7 +150,7 @@ export class MsSqlPlatform extends AbstractSqlPlatform {
|
|
|
150
150
|
getSearchJsonPropertyKey(path, type, aliased, value) {
|
|
151
151
|
const [a, ...b] = path;
|
|
152
152
|
/* v8 ignore next */
|
|
153
|
-
const root =
|
|
153
|
+
const root = aliased ? `[${ALIAS_REPLACEMENT}].${this.quoteIdentifier(a)}` : this.quoteIdentifier(a);
|
|
154
154
|
const types = {
|
|
155
155
|
boolean: 'bit',
|
|
156
156
|
};
|
|
@@ -187,7 +187,7 @@ export class MsSqlPlatform extends AbstractSqlPlatform {
|
|
|
187
187
|
if (RawQueryFragment.isKnownFragment(id)) {
|
|
188
188
|
return super.quoteIdentifier(id);
|
|
189
189
|
}
|
|
190
|
-
return `[${id.toString().replace('.', `].[`)}]`;
|
|
190
|
+
return `[${id.toString().replaceAll(']', ']]').replace('.', `].[`)}]`;
|
|
191
191
|
}
|
|
192
192
|
escape(value) {
|
|
193
193
|
if (value instanceof UnicodeString) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mssql",
|
|
3
|
-
"version": "7.0.14-dev.
|
|
3
|
+
"version": "7.0.14-dev.11",
|
|
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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/sql": "7.0.14-dev.
|
|
50
|
+
"@mikro-orm/sql": "7.0.14-dev.11",
|
|
51
51
|
"kysely": "0.28.16",
|
|
52
52
|
"tarn": "3.0.2",
|
|
53
53
|
"tedious": "19.2.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@mikro-orm/core": "^7.0.13"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@mikro-orm/core": "7.0.14-dev.
|
|
60
|
+
"@mikro-orm/core": "7.0.14-dev.11"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">= 22.17.0"
|