Typo "aggreagate" appeared three times, and the return value of function
JsonbIteratorNext() was being assigned to an int variable in a bunch of
places.
{
bool first = true;
JsonbIterator *it;
- int type = 0;
+ JsonbIteratorToken type;
JsonbValue v;
int level = 0;
bool redo_switch = false;
first = false;
break;
default:
- elog(ERROR, "unknown flag of jsonb iterator");
+ elog(ERROR, "unknown jsonb iterator token type");
}
}