summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec00d19)
raw | patch | inline | side by side (parent: ec00d19)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 23 Oct 2012 11:02:58 +0000 (13:02 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 23 Oct 2012 11:02:58 +0000 (13:02 +0200) |
src/cdata.c | patch | blob | history |
diff --git a/src/cdata.c b/src/cdata.c
index c4f934034fcad12153546f500a649a42b69e9526..7ee14e643b9d8081997073e4188b2fca79c58c00 100644 (file)
--- a/src/cdata.c
+++ b/src/cdata.c
if (! data)
PG_RETURN_CDATA_P(update);
+ if (! update)
+ PG_RETURN_CDATA_P(data);
+
if ((data->cf != update->cf) && (update->val_num > 1))
ereport(ERROR, (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),