Skip to content

Commit ecfe1a1

Browse files
committed
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.
1 parent 79afe6e commit ecfe1a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/jsonb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len)
372372
{
373373
bool first = true;
374374
JsonbIterator *it;
375-
int type = 0;
375+
JsonbIteratorToken type;
376376
JsonbValue v;
377377
int level = 0;
378378
bool redo_switch = false;
@@ -454,7 +454,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len)
454454
first = false;
455455
break;
456456
default:
457-
elog(ERROR, "unknown flag of jsonb iterator");
457+
elog(ERROR, "unknown jsonb iterator token type");
458458
}
459459
}
460460

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy