postgres.git / summary / log / commit / refs
commit ecfe1a1889bc8640a4e3b8659d69ec1fd0e30b4a
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Fri Feb 27 21:54:49 2015 +0000
First released in: 9.5.0, 9.4.2
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 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");
}
}
[parent: 79afe6e66f02]