From a21704ac5c9ec245a36a32b90d0a736feac64340 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 23 Oct 2012 12:34:01 +0200 Subject: [PATCH] CData: Include CF function in output string. This makes all information available that are required to regenerate the same CData object from the stringified version. --- src/cdata.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cdata.c b/src/cdata.c index 03fefbc..26f2656 100644 --- a/src/cdata.c +++ b/src/cdata.c @@ -189,8 +189,9 @@ cdata_out(PG_FUNCTION_ARGS) data = PG_GETARG_CDATA_P(0); - snprintf(cd_str, sizeof(cd_str), "%g (U:%i/%i)", - data->value, data->undef_num, data->val_num); + snprintf(cd_str, sizeof(cd_str), "%g (%s U:%i/%i)", + data->value, CF_TO_STR(data->cf), + data->undef_num, data->val_num); result = pstrdup(cd_str); PG_RETURN_CSTRING(result); -- 2.30.2