1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

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.
This commit is contained in:
Alvaro Herrera
2015-02-27 18:54:49 -03:00
parent 79afe6e66f
commit ecfe1a1889

View File

@ -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");
}
}