aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2019-05-07 18:26:09 +0200
committerMagnus Hagander <magnus@hagander.net>2019-05-07 18:26:09 +0200
commit98719af6c2e30d538cd05cfe044f58ba4067b52b (patch)
tree75f905d491789766cfd00eaaef50a66f5f17b24d /src
parent8d0ddccec6366a2851da7d350b33659203aa644b (diff)
downloadpostgresql-98719af6c2e30d538cd05cfe044f58ba4067b52b.tar.gz
postgresql-98719af6c2e30d538cd05cfe044f58ba4067b52b.zip
Fix typos and clarify a comment
Author: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/jsonpath_exec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c
index ae61b8fa3e6..0a263ad8b31 100644
--- a/src/backend/utils/adt/jsonpath_exec.c
+++ b/src/backend/utils/adt/jsonpath_exec.c
@@ -470,9 +470,10 @@ jsonb_path_query_first(FunctionCallInfo fcinfo)
* 'throwErrors' - whether we should throw suppressible errors
* 'result' - list to store result items into
*
- * Returns an error happens during processing or NULL on no error.
+ * Returns an error if a recoverable error happens during processing, or NULL
+ * on no error.
*
- * Note, jsonb and jsonpath values should be avaliable and untoasted during
+ * Note, jsonb and jsonpath values should be available and untoasted during
* work because JsonPathItem, JsonbValue and result item could have pointers
* into input values. If caller needs to just check if document matches
* jsonpath, then it doesn't provide a result arg. In this case executor
@@ -1529,7 +1530,7 @@ executeBinaryArithmExpr(JsonPathExecContext *cxt, JsonPathItem *jsp,
/*
* XXX: By standard only operands of multiplicative expressions are
- * unwrapped. We extend it to other binary arithmetics expressions too.
+ * unwrapped. We extend it to other binary arithmetic expressions too.
*/
jper = executeItemOptUnwrapResult(cxt, &elem, jb, true, &lseq);
if (jperIsError(jper))