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

Commit dc74965

Browse files
author
Nikita Glukhov
committed
Add comments for scalarineqsel() call
1 parent 797ea5d commit dc74965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/jsonb_selfuncs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,8 +1190,10 @@ jsonSelectivity(JsonPathStats stats, Datum scalar, Oid operator)
11901190
sel = var_eq_const(&vardata, operator, InvalidOid, scalar, false, true, false);
11911191
else
11921192
sel = scalarineqsel(NULL, operator,
1193+
/* is it greater or greater-or-equal? */
11931194
operator == JsonbGtOperator ||
11941195
operator == JsonbGeOperator,
1196+
/* is it equality? */
11951197
operator == JsonbLeOperator ||
11961198
operator == JsonbGeOperator,
11971199
InvalidOid,

0 commit comments

Comments
 (0)