array_to_json_internal(array, result, false);
- PG_RETURN_TEXT_P(cstring_to_text(result->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(result->data, result->len));
}
/*
array_to_json_internal(array, result, use_line_feeds);
- PG_RETURN_TEXT_P(cstring_to_text(result->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(result->data, result->len));
}
/*
composite_to_json(array, result, false);
- PG_RETURN_TEXT_P(cstring_to_text(result->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(result->data, result->len));
}
/*
composite_to_json(array, result, use_line_feeds);
- PG_RETURN_TEXT_P(cstring_to_text(result->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(result->data, result->len));
}
/*
datum_to_json(val, false, result, tcategory, typoutput);
- PG_RETURN_TEXT_P(cstring_to_text(result->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(result->data, result->len));
}
/*
appendStringInfoChar(state, ']');
- PG_RETURN_TEXT_P(cstring_to_text(state->data));
+ PG_RETURN_TEXT_P(cstring_to_text_with_len(state->data, state->len));
}
/*