* array_ref : backwards compatibility wrapper for array_get_element * * This only works for detoasted/flattened varlena arrays, since the array * argument is declared as "ArrayType *". However there's enough code like * that to justify preserving this API. */
| 3152 | * that to justify preserving this API. |
| 3153 | */ |
| 3154 | Datum |
| 3155 | array_ref(ArrayType *array, int nSubscripts, int *indx, |
| 3156 | int arraytyplen, int elmlen, bool elmbyval, char elmalign, |
| 3157 | bool *isNull) |
| 3158 | { |
| 3159 | return array_get_element(PointerGetDatum(array), nSubscripts, indx, |
| 3160 | arraytyplen, elmlen, elmbyval, elmalign, |
| 3161 | isNull); |
| 3162 | } |
| 3163 | |
| 3164 | /* |
| 3165 | * array_set : backwards compatibility wrapper for array_set_element |
no test coverage detected