diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-27 18:54:49 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-27 18:54:49 -0300 |
commit | ecfe1a1889bc8640a4e3b8659d69ec1fd0e30b4a (patch) | |
tree | 3a5959debb316177eb00a1623cafd81781d0ab46 /src/backend/utils/adt/jsonb.c | |
parent | 79afe6e66f022ea9cd6c34c334214b2fda870faa (diff) |
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.
Diffstat (limited to 'src/backend/utils/adt/jsonb.c')
-rw-r--r-- | src/backend/utils/adt/jsonb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/jsonb.c b/src/backend/utils/adt/jsonb.c index 9beebb3cb38..0a36c44e9b4 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"); } } |