* array_set : backwards compatibility wrapper for array_set_element * * This only works for detoasted/flattened varlena arrays, since the array * argument and result are declared as "ArrayType *". However there's enough * code like that to justify preserving this API. */
| 3169 | * code like that to justify preserving this API. |
| 3170 | */ |
| 3171 | ArrayType * |
| 3172 | array_set(ArrayType *array, int nSubscripts, int *indx, |
| 3173 | Datum dataValue, bool isNull, |
| 3174 | int arraytyplen, int elmlen, bool elmbyval, char elmalign) |
| 3175 | { |
| 3176 | return DatumGetArrayTypeP(array_set_element(PointerGetDatum(array), |
| 3177 | nSubscripts, indx, |
| 3178 | dataValue, isNull, |
| 3179 | arraytyplen, |
| 3180 | elmlen, elmbyval, elmalign)); |
| 3181 | } |
| 3182 | |
| 3183 | /* |
| 3184 | * array_map() |
no test coverage detected