aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-10-23 12:17:16 +0200
committerPeter Eisentraut <peter_e@gmx.net>2018-10-23 12:25:17 +0200
commit807e4bc828cff0645d2a776604dc7cdc733b2fd3 (patch)
tree6c671d6c4b0a3c6a75133ecd2dbae48d028a4bc6 /src/backend/parser
parent55853d666ce5d0024c50dc3d223346df28abfa70 (diff)
downloadpostgresql-807e4bc828cff0645d2a776604dc7cdc733b2fd3.tar.gz
postgresql-807e4bc828cff0645d2a776604dc7cdc733b2fd3.zip
Sprinkle some const decorations
These mainly help understanding the function signatures better.
Diffstat (limited to 'src/backend/parser')
-rw-r--r--src/backend/parser/parse_coerce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c
index c31a5630b2f..7d8cb459e8a 100644
--- a/src/backend/parser/parse_coerce.c
+++ b/src/backend/parser/parse_coerce.c
@@ -540,7 +540,7 @@ coerce_type(ParseState *pstate, Node *node,
* as this determines the set of available casts.
*/
bool
-can_coerce_type(int nargs, Oid *input_typeids, Oid *target_typeids,
+can_coerce_type(int nargs, const Oid *input_typeids, const Oid *target_typeids,
CoercionContext ccontext)
{
bool have_generics = false;
@@ -1467,8 +1467,8 @@ coerce_to_common_type(ParseState *pstate, Node *node,
* We do not ereport here, but just return false if a rule is violated.
*/
bool
-check_generic_type_consistency(Oid *actual_arg_types,
- Oid *declared_arg_types,
+check_generic_type_consistency(const Oid *actual_arg_types,
+ const Oid *declared_arg_types,
int nargs)
{
int j;
@@ -1664,7 +1664,7 @@ check_generic_type_consistency(Oid *actual_arg_types,
* assume that successive inputs are of the same actual element type.
*/
Oid
-enforce_generic_type_consistency(Oid *actual_arg_types,
+enforce_generic_type_consistency(const Oid *actual_arg_types,
Oid *declared_arg_types,
int nargs,
Oid rettype,