@mikro-orm/mariadb 7.2.6-dev.4 → 7.2.6-dev.40
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/MariaDbSchemaHelper.js +6 -1
- package/package.json +4 -4
package/MariaDbSchemaHelper.js
CHANGED
|
@@ -194,6 +194,11 @@ export class MariaDbSchemaHelper extends MySqlSchemaHelper {
|
|
|
194
194
|
order by tc.constraint_name`;
|
|
195
195
|
}
|
|
196
196
|
wrap(val, type) {
|
|
197
|
-
|
|
197
|
+
const match = typeof val === 'string' ? /^'(.*)'$/s.exec(val) : null;
|
|
198
|
+
if (!match) {
|
|
199
|
+
return val;
|
|
200
|
+
}
|
|
201
|
+
// text/blob literals come back fully backslash-escaped (`'it\'s'`), varchar ones with doubled quotes (`'it''s'`) but still `\\` for a backslash
|
|
202
|
+
return this.quoteDefault(this.unescapeDefault(match[1].replaceAll("''", "\\'")));
|
|
198
203
|
}
|
|
199
204
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mariadb",
|
|
3
|
-
"version": "7.2.6-dev.
|
|
3
|
+
"version": "7.2.6-dev.40",
|
|
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,14 +47,14 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/mysql": "7.2.6-dev.
|
|
51
|
-
"kysely": "0.29.
|
|
50
|
+
"@mikro-orm/mysql": "7.2.6-dev.40",
|
|
51
|
+
"kysely": "0.29.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@mikro-orm/core": "^7.2.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@mikro-orm/core": "7.2.6-dev.
|
|
57
|
+
"@mikro-orm/core": "7.2.6-dev.40"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">= 22.17.0"
|