Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5bc7b33

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 parentff09129 commit5bc7b33

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-
#definejspStrictAbsenseOfErrors(cxt)(!(cxt)->laxMode)
156+
#definejspStrictAbsenceOfErrors(cxt)(!(cxt)->laxMode)
157157
#definejspAutoUnwrap(cxt)((cxt)->laxMode)
158158
#definejspAutoWrap(cxt)((cxt)->laxMode)
159159
#definejspIgnoreStructuralErrors(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
casejpiExists:
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
returnjpbUnknown;
15211521

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

15291529
found= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp