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.js
CHANGED
|
@@ -3195,7 +3195,7 @@ const escape = (value, migration, nested) => {
|
|
|
3195
3195
|
else if (value instanceof Date)
|
|
3196
3196
|
return `'${value.toISOString()}'`;
|
|
3197
3197
|
else if (Array.isArray(value))
|
|
3198
|
-
return migration && nested && !value.length ? "" : (migration ? "{" : nested ? "[" : "ARRAY[") + value.map((el) => escape(el, migration, true)).join(",") + (migration ? "}" : "]");
|
|
3198
|
+
return migration && nested && !value.length ? "" : (migration ? nested ? "{" : "'{" : nested ? "[" : "ARRAY[") + value.map((el) => escape(el, migration, true)).join(",") + (migration ? nested ? "}" : "}'" : "]");
|
|
3199
3199
|
else if (value === null || value === void 0)
|
|
3200
3200
|
return "NULL";
|
|
3201
3201
|
else
|