diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-21 00:35:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-21 00:35:13 +0000 |
commit | 8c99671a3b2e5b90d263cfd883c9cdeba63d6cc4 (patch) | |
tree | 2b529b95daa1fd6ee92c72f91a68b1b4e426a514 /src/include | |
parent | fe92ed8b78ce527739547fcd233c63debb2f3538 (diff) | |
download | postgresql-8c99671a3b2e5b90d263cfd883c9cdeba63d6cc4.tar.gz postgresql-8c99671a3b2e5b90d263cfd883c9cdeba63d6cc4.zip |
Implement a solution to the 'Turkish locale downcases I incorrectly'
problem, per previous discussion. Make some additional changes to
centralize the knowledge of just how identifier downcasing is done,
in hopes of simplifying any future tweaking in this area.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/commands/defrem.h | 4 | ||||
-rw-r--r-- | src/include/parser/scansup.h | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index e192c868fa0..f6a5da4531d 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: defrem.h,v 1.52 2003/08/04 02:40:13 momjian Exp $ + * $Id: defrem.h,v 1.52.4.1 2004/02/21 00:35:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -61,7 +61,7 @@ extern void RenameOpClass(List *name, const char *access_method, const char *new /* support routines in commands/define.c */ -extern void case_translate_language_name(const char *input, char *output); +extern char *case_translate_language_name(const char *input); extern char *defGetString(DefElem *def); extern double defGetNumeric(DefElem *def); diff --git a/src/include/parser/scansup.h b/src/include/parser/scansup.h index 12b8794d28d..ef4e1179a99 100644 --- a/src/include/parser/scansup.h +++ b/src/include/parser/scansup.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: scansup.h,v 1.13 2003/08/04 02:40:14 momjian Exp $ + * $Id: scansup.h,v 1.13.4.1 2004/02/21 00:35:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,11 @@ #ifndef SCANSUP_H #define SCANSUP_H -extern char *scanstr(char *s); +extern char *scanstr(const char *s); + +extern char *downcase_truncate_identifier(const char *ident, int len, + bool warn); + +extern void truncate_identifier(char *ident, int len, bool warn); #endif /* SCANSUP_H */ |