@mikro-orm/postgresql 6.6.14-dev.0 → 6.6.14-dev.2
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/PostgreSqlPlatform.js +4 -3
- package/package.json +3 -3
package/PostgreSqlPlatform.js
CHANGED
|
@@ -226,9 +226,9 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
226
226
|
lastOperator = '->';
|
|
227
227
|
}
|
|
228
228
|
if (path.length === 0) {
|
|
229
|
-
return cast(`${root}${lastOperator}
|
|
229
|
+
return cast(`${root}${lastOperator}${this.quoteValue(last)}`);
|
|
230
230
|
}
|
|
231
|
-
return cast(`${root}->${path.map(a => this.quoteValue(a)).join('->')}${lastOperator}
|
|
231
|
+
return cast(`${root}->${path.map(a => this.quoteValue(a)).join('->')}${lastOperator}${this.quoteValue(last)}`);
|
|
232
232
|
}
|
|
233
233
|
getJsonIndexDefinition(index) {
|
|
234
234
|
return index.columnNames
|
|
@@ -246,7 +246,8 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
quoteIdentifier(id, quote = '"') {
|
|
249
|
-
|
|
249
|
+
const escaped = id.toString().replaceAll(quote, quote + quote);
|
|
250
|
+
return `${quote}${escaped.replace('.', `${quote}.${quote}`)}${quote}`;
|
|
250
251
|
}
|
|
251
252
|
escape(value) {
|
|
252
253
|
if (typeof value === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "6.6.14-dev.
|
|
3
|
+
"version": "6.6.14-dev.2",
|
|
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.14-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.6.14-dev.2",
|
|
62
62
|
"pg": "8.20.0",
|
|
63
63
|
"postgres-array": "3.0.4",
|
|
64
64
|
"postgres-date": "2.1.0",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"@mikro-orm/core": "^6.6.13"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "6.6.14-dev.
|
|
71
|
+
"@mikro-orm/core": "6.6.14-dev.2"
|
|
72
72
|
}
|
|
73
73
|
}
|