From: Alvaro Herrera Date: Fri, 27 Feb 2015 21:54:49 +0000 (-0300) Subject: Fix a couple of trivial issues in jsonb.c X-Git-Tag: REL9_4_2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecfe1a1889bc8640a4e3b8659d69ec1fd0e30b4a;p=postgresql Fix a couple of trivial issues in jsonb.c Typo "aggreagate" appeared three times, and the return value of function JsonbIteratorNext() was being assigned to an int variable in a bunch of places. --- diff --git a/src/backend/utils/adt/jsonb.c b/src/backend/utils/adt/jsonb.c index 9beebb3cb3..0a36c44e9b 100644 --- a/src/backend/utils/adt/jsonb.c +++ b/src/backend/utils/adt/jsonb.c @@ -372,7 +372,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len) { bool first = true; JsonbIterator *it; - int type = 0; + JsonbIteratorToken type; JsonbValue v; int level = 0; bool redo_switch = false; @@ -454,7 +454,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len) first = false; break; default: - elog(ERROR, "unknown flag of jsonb iterator"); + elog(ERROR, "unknown jsonb iterator token type"); } }