pqb 0.40.6 → 0.40.7
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3193,7 +3193,7 @@ const escape = (value, migration, nested) => {
|
|
|
3193
3193
|
else if (value instanceof Date)
|
|
3194
3194
|
return `'${value.toISOString()}'`;
|
|
3195
3195
|
else if (Array.isArray(value))
|
|
3196
|
-
return migration && nested && !value.length ? "" : (migration ? "{" : nested ? "[" : "ARRAY[") + value.map((el) => escape(el, migration, true)).join(",") + (migration ? "}" : "]");
|
|
3196
|
+
return migration && nested && !value.length ? "" : (migration ? nested ? "{" : "'{" : nested ? "[" : "ARRAY[") + value.map((el) => escape(el, migration, true)).join(",") + (migration ? nested ? "}" : "}'" : "]");
|
|
3197
3197
|
else if (value === null || value === void 0)
|
|
3198
3198
|
return "NULL";
|
|
3199
3199
|
else
|