Skip to content

Commit 5bc7b33

Browse files
committed
jsonpath_exec: fix typo "absense" -> "absence"
Dagfinn Ilmari Mannsåker, reviewed by Shubham Khanna. Discussion: http://postgr.es/m/87le9fmi01.fsf@wibble.ilmari.org
1 parent ff09129 commit 5bc7b33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/utils/adt/jsonpath_exec.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ typedef struct JsonValueListIterator
153153
} JsonValueListIterator;
154154

155155
/* strict/lax flags is decomposed into four [un]wrap/error flags */
156-
#define jspStrictAbsenseOfErrors(cxt) (!(cxt)->laxMode)
156+
#define jspStrictAbsenceOfErrors(cxt) (!(cxt)->laxMode)
157157
#define jspAutoUnwrap(cxt) ((cxt)->laxMode)
158158
#define jspAutoWrap(cxt) ((cxt)->laxMode)
159159
#define jspIgnoreStructuralErrors(cxt) ((cxt)->ignoreStructuralErrors)
@@ -570,7 +570,7 @@ executeJsonPath(JsonPath *path, Jsonb *vars, Jsonb *json, bool throwErrors,
570570
cxt.throwErrors = throwErrors;
571571
cxt.useTz = useTz;
572572

573-
if (jspStrictAbsenseOfErrors(&cxt) && !result)
573+
if (jspStrictAbsenceOfErrors(&cxt) && !result)
574574
{
575575
/*
576576
* In strict mode we must get a complete list of values to check that
@@ -1318,7 +1318,7 @@ executeBoolItem(JsonPathExecContext *cxt, JsonPathItem *jsp,
13181318
case jpiExists:
13191319
jspGetArg(jsp, &larg);
13201320

1321-
if (jspStrictAbsenseOfErrors(cxt))
1321+
if (jspStrictAbsenceOfErrors(cxt))
13221322
{
13231323
/*
13241324
* In strict mode we must get a complete list of values to
@@ -1516,14 +1516,14 @@ executePredicate(JsonPathExecContext *cxt, JsonPathItem *pred,
15161516

15171517
if (res == jpbUnknown)
15181518
{
1519-
if (jspStrictAbsenseOfErrors(cxt))
1519+
if (jspStrictAbsenceOfErrors(cxt))
15201520
return jpbUnknown;
15211521

15221522
error = true;
15231523
}
15241524
else if (res == jpbTrue)
15251525
{
1526-
if (!jspStrictAbsenseOfErrors(cxt))
1526+
if (!jspStrictAbsenceOfErrors(cxt))
15271527
return jpbTrue;
15281528

15291529
found = true;

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