Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 924d046

Browse files
committed
Add a const decoration
Useful for a subsequent patch. Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org
1 parent 55627ba commit 924d046

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/parser/parse_type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ LookupCollation(ParseState *pstate, List *collnames, int location)
537537
* pstate is only used for error location purposes, and can be NULL.
538538
*/
539539
Oid
540-
GetColumnDefCollation(ParseState *pstate, ColumnDef *coldef, Oid typeOid)
540+
GetColumnDefCollation(ParseState *pstate, const ColumnDef *coldef, Oid typeOid)
541541
{
542542
Oid result;
543543
Oid typcollation = get_typcollation(typeOid);

src/include/parser/parse_type.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern char *TypeNameToString(const TypeName *typeName);
3636
extern char *TypeNameListToString(List *typenames);
3737

3838
extern Oid LookupCollation(ParseState *pstate, List *collnames, int location);
39-
extern Oid GetColumnDefCollation(ParseState *pstate, ColumnDef *coldef, Oid typeOid);
39+
extern Oid GetColumnDefCollation(ParseState *pstate, const ColumnDef *coldef, Oid typeOid);
4040

4141
extern Type typeidType(Oid id);
4242

0 commit comments

Comments
 (0)