Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4-3
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)