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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy