You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// There was no tweak applied to the fragment, no change
341
+
// necessary.
342
+
returnfragment;
343
+
}else{
344
+
// Tweaking was necessary, process each item in the array in this
345
+
// way, and then return the resulting array, being careful that
346
+
// nulls are preserved.
347
+
returnsql.fragment`(case when ${fragment} is null then null else array(select ${innerFragment} from unnest(${fragment}) as unnest(${sqlVal})) end)`;
348
+
}
349
+
}else{
350
+
// TODO: check that domains don't support atttypemod
351
+
returnpgTweakFragmentForTypeAndModifier(
352
+
fragment,
353
+
type.domainBaseType,
354
+
type.domainBaseTypeModifier,
355
+
resolveData
356
+
);
357
+
}
302
358
}elseif(type.isPgArray){
303
359
consterror=newError(
304
360
`Internal graphile-build-pg error: should not attempt to tweak an array, please process array before tweaking (type: "${type.namespaceName}.${type.name}")`
0 commit comments