summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7e2439)
raw | patch | inline | side by side (parent: c7e2439)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 23 Oct 2012 10:34:01 +0000 (12:34 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 23 Oct 2012 10:34:01 +0000 (12:34 +0200) |
This makes all information available that are required to regenerate the same
CData object from the stringified version.
CData object from the stringified version.
src/cdata.c | patch | blob | history |
diff --git a/src/cdata.c b/src/cdata.c
index 03fefbc6c510f45556c76237472c1139895e7365..26f2656acbb5d544fd644ea1bc5e70d453238401 100644 (file)
--- a/src/cdata.c
+++ b/src/cdata.c
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);