From 924d046dcf55887c98a1628675a30f4b0eebe556 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 25 Jan 2024 13:34:49 +0100 Subject: [PATCH] Add a const decoration Useful for a subsequent patch. Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org --- src/backend/parser/parse_type.c | 2 +- src/include/parser/parse_type.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/parser/parse_type.c b/src/backend/parser/parse_type.c index a33b59c62e2..c1a937a43b4 100644 --- a/src/backend/parser/parse_type.c +++ b/src/backend/parser/parse_type.c @@ -537,7 +537,7 @@ LookupCollation(ParseState *pstate, List *collnames, int location) * pstate is only used for error location purposes, and can be NULL. */ Oid -GetColumnDefCollation(ParseState *pstate, ColumnDef *coldef, Oid typeOid) +GetColumnDefCollation(ParseState *pstate, const ColumnDef *coldef, Oid typeOid) { Oid result; Oid typcollation = get_typcollation(typeOid); diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h index e5fa759120c..b62e7a6ce99 100644 --- a/src/include/parser/parse_type.h +++ b/src/include/parser/parse_type.h @@ -36,7 +36,7 @@ extern char *TypeNameToString(const TypeName *typeName); extern char *TypeNameListToString(List *typenames); extern Oid LookupCollation(ParseState *pstate, List *collnames, int location); -extern Oid GetColumnDefCollation(ParseState *pstate, ColumnDef *coldef, Oid typeOid); +extern Oid GetColumnDefCollation(ParseState *pstate, const ColumnDef *coldef, Oid typeOid); extern Type typeidType(Oid id);