mirror of
https://github.com/postgres/postgres.git
synced 2026-02-25 02:44:39 -05: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:
parent
79afe6e66f
commit
ecfe1a1889
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue