@mikro-orm/sql
Advanced tools
+2
-2
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.1.5-dev.16", | ||
| "version": "7.1.5-dev.17", | ||
| "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.", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.1.5-dev.16" | ||
| "@mikro-orm/core": "7.1.5-dev.17" | ||
| }, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -603,2 +603,4 @@ import { ALIAS_REPLACEMENT, ALIAS_REPLACEMENT_RE, ArrayType, JsonType, inspect, isRaw, LockMode, OptimisticLockError, QueryOperator, QueryOrderNumeric, raw, Raw, QueryHelper, ReferenceKind, Utils, ValidationError, } from '@mikro-orm/core'; | ||
| } | ||
| // array custom types (e.g. `$contains`/`$overlap` on `string[]` columns) are converted to a single | ||
| // array literal, so we emit a single bound parameter — not one per element wrapped in a tuple | ||
| if (prop?.customType instanceof ArrayType) { | ||
@@ -611,6 +613,5 @@ const item = prop.customType.convertToDatabaseValue(value, this.#platform, { | ||
| params.push(item); | ||
| return '?'; | ||
| } | ||
| else { | ||
| value.forEach(p => params.push(p)); | ||
| } | ||
| value.forEach(p => params.push(p)); | ||
| return `(${value.map(() => '?').join(', ')})`; | ||
@@ -617,0 +618,0 @@ } |
1047277
0.02%21938
0