Skip to content

Commit 98719af

Browse files
committed
Fix typos and clarify a comment
Author: Daniel Gustafsson <daniel@yesql.se>
1 parent 8d0ddcc commit 98719af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/utils/adt/jsonpath_exec.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,10 @@ jsonb_path_query_first(FunctionCallInfo fcinfo)
470470
* 'throwErrors' - whether we should throw suppressible errors
471471
* 'result' - list to store result items into
472472
*
473-
* Returns an error happens during processing or NULL on no error.
473+
* Returns an error if a recoverable error happens during processing, or NULL
474+
* on no error.
474475
*
475-
* Note, jsonb and jsonpath values should be avaliable and untoasted during
476+
* Note, jsonb and jsonpath values should be available and untoasted during
476477
* work because JsonPathItem, JsonbValue and result item could have pointers
477478
* into input values. If caller needs to just check if document matches
478479
* jsonpath, then it doesn't provide a result arg. In this case executor
@@ -1529,7 +1530,7 @@ executeBinaryArithmExpr(JsonPathExecContext *cxt, JsonPathItem *jsp,
15291530

15301531
/*
15311532
* XXX: By standard only operands of multiplicative expressions are
1532-
* unwrapped. We extend it to other binary arithmetics expressions too.
1533+
* unwrapped. We extend it to other binary arithmetic expressions too.
15331534
*/
15341535
jper = executeItemOptUnwrapResult(cxt, &elem, jb, true, &lseq);
15351536
if (jperIsError(jper))

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