Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c8d6c9c

Browse files
author
Nikita Glukhov
committed
Fix ??? comment about JsonAnalyzeContext.scalarsOnly
1 parent 08b9002 commit c8d6c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonb_typanalyze.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ jsonAnalyzeJsonValue(JsonAnalyzeContext *ctx, JsonValueStats *vstats,
343343
JsonbValue jbvtmp;
344344
Datum value;
345345

346-
/* ??? */
346+
/* XXX if analyzing only scalar values, make containers empty */
347347
if (ctx->scalarsOnly && jv->type == jbvBinary)
348348
{
349349
if (JsonContainerIsObject(jv->val.binary.data))

0 commit comments

Comments
 (0)