diff options
| -rw-r--r-- | contrib/hstore/hstore_subs.c | 2 | ||||
| -rw-r--r-- | src/backend/utils/adt/arraysubs.c | 2 | ||||
| -rw-r--r-- | src/backend/utils/adt/jsonbsubs.c | 2 | ||||
| -rw-r--r-- | src/include/nodes/subscripting.h | 15 |
4 files changed, 11 insertions, 10 deletions
diff --git a/contrib/hstore/hstore_subs.c b/contrib/hstore/hstore_subs.c index 3d03f66fa0d..1bae69e4e2c 100644 --- a/contrib/hstore/hstore_subs.c +++ b/contrib/hstore/hstore_subs.c @@ -74,7 +74,7 @@ hstore_subscript_transform(SubscriptingRef *sbsref, errmsg("hstore subscript must have type text"), parser_errposition(pstate, exprLocation(ai->uidx)))); - /* ... and store the transformed subscript into the SubscriptRef node */ + /* ... and store the transformed subscript into the SubscriptingRef node */ sbsref->refupperindexpr = list_make1(subexpr); sbsref->reflowerindexpr = NIL; diff --git a/src/backend/utils/adt/arraysubs.c b/src/backend/utils/adt/arraysubs.c index 2940fb8e8d7..b476fa586a9 100644 --- a/src/backend/utils/adt/arraysubs.c +++ b/src/backend/utils/adt/arraysubs.c @@ -140,7 +140,7 @@ array_subscript_transform(SubscriptingRef *sbsref, upperIndexpr = lappend(upperIndexpr, subexpr); } - /* ... and store the transformed lists into the SubscriptRef node */ + /* ... and store the transformed lists into the SubscriptingRef node */ sbsref->refupperindexpr = upperIndexpr; sbsref->reflowerindexpr = lowerIndexpr; diff --git a/src/backend/utils/adt/jsonbsubs.c b/src/backend/utils/adt/jsonbsubs.c index e8626d3b4fc..b9f5eed44a6 100644 --- a/src/backend/utils/adt/jsonbsubs.c +++ b/src/backend/utils/adt/jsonbsubs.c @@ -152,7 +152,7 @@ jsonb_subscript_transform(SubscriptingRef *sbsref, upperIndexpr = lappend(upperIndexpr, subExpr); } - /* store the transformed lists into the SubscriptRef node */ + /* store the transformed lists into the SubscriptingRef node */ sbsref->refupperindexpr = upperIndexpr; sbsref->reflowerindexpr = NIL; diff --git a/src/include/nodes/subscripting.h b/src/include/nodes/subscripting.h index e991f4bf826..6e133b881d3 100644 --- a/src/include/nodes/subscripting.h +++ b/src/include/nodes/subscripting.h @@ -35,14 +35,14 @@ typedef struct SubscriptExecSteps SubscriptExecSteps; * several bool flags that specify properties of the subscripting actions * this data type can perform: * - * fetch_strict indicates that a fetch SubscriptRef is strict, i.e., returns + * fetch_strict indicates that a fetch SubscriptingRef is strict, i.e., returns * NULL if any input (either the container or any subscript) is NULL. * - * fetch_leakproof indicates that a fetch SubscriptRef is leakproof, i.e., + * fetch_leakproof indicates that a fetch SubscriptingRef is leakproof, i.e., * will not throw any data-value-dependent errors. Typically this requires * silently returning NULL for invalid subscripts. * - * store_leakproof similarly indicates whether an assignment SubscriptRef is + * store_leakproof similarly indicates whether an assignment SubscriptingRef is * leakproof. (It is common to prefer throwing errors for invalid subscripts * in assignments; that's fine, but it makes the operation not leakproof. * In current usage there is no advantage in making assignments leakproof.) @@ -51,7 +51,7 @@ typedef struct SubscriptExecSteps SubscriptExecSteps; * undesirable, since for example a null subscript in an assignment would * cause the entire container to become NULL. * - * Regardless of these flags, all SubscriptRefs are expected to be immutable, + * Regardless of these flags, all SubscriptingRefs are expected to be immutable, * that is they must always give the same results for the same inputs. * They are expected to always be parallel-safe, as well. */ @@ -159,9 +159,10 @@ typedef struct SubscriptRoutines { SubscriptTransform transform; /* parse analysis function */ SubscriptExecSetup exec_setup; /* expression compilation function */ - bool fetch_strict; /* is fetch SubscriptRef strict? */ - bool fetch_leakproof; /* is fetch SubscriptRef leakproof? */ - bool store_leakproof; /* is assignment SubscriptRef leakproof? */ + bool fetch_strict; /* is fetch SubscriptingRef strict? */ + bool fetch_leakproof; /* is fetch SubscriptingRef leakproof? */ + bool store_leakproof; /* is assignment SubscriptingRef + * leakproof? */ } SubscriptRoutines; #endif /* SUBSCRIPTING_H */ |
