From ecfe1a1889bc8640a4e3b8659d69ec1fd0e30b4a Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Fri, 27 Feb 2015 18:54:49 -0300 Subject: [PATCH] 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. --- src/backend/utils/adt/jsonb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } } -- 2.40.0