Fix unnest issues

This commit is contained in:
Zoe Roux
2025-11-28 17:11:29 +01:00
parent 8fc279d2ed
commit 464d720ef9
6 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ export function conflictUpdateAllExcept<
export function sqlarr(array: unknown[]): string {
return `{${array
.map((item) =>
!item || item === "null"
item === "null" || item === null || item === undefined
? "null"
: Array.isArray(item)
? sqlarr(item)