From: Sebastian Harl Date: Tue, 23 Oct 2012 10:34:01 +0000 (+0200) Subject: CData: Include CF function in output string. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a21704ac5c9ec245a36a32b90d0a736feac64340;p=postrr.git 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. --- 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);