@mikro-orm/sql 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.
@@ -265,7 +265,8 @@ export class BasePostgreSqlPlatform extends AbstractSqlPlatform {
265
265
  if (RawQueryFragment.isKnownFragment(id)) {
266
266
  return super.quoteIdentifier(id);
267
267
  }
268
- return `${quote}${id.toString().replace('.', `${quote}.${quote}`)}${quote}`;
268
+ const escaped = id.toString().replaceAll(quote, quote + quote);
269
+ return `${quote}${escaped.replace('.', `${quote}.${quote}`)}${quote}`;
269
270
  }
270
271
  pad(number, digits) {
271
272
  return String(number).padStart(digits, '0');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.0.14-dev.10",
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",
@@ -53,7 +53,7 @@
53
53
  "@mikro-orm/core": "^7.0.13"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.0.14-dev.10"
56
+ "@mikro-orm/core": "7.0.14-dev.11"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"