1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Remove ancient downcasing code from procedural language operations.

A very long time ago, language names were specified as literals rather
than identifiers, so this code was added to do case-folding.  But that
style has ben deprecated for many years so this isn't needed any more.
Language names will still be downcased when specified as unquoted
identifiers, but quoted identifiers or the old style using string
literals will be left as-is.
This commit is contained in:
Robert Haas
2011-11-17 14:20:13 -05:00
parent ee3ef8f30c
commit 67dc4eed42
5 changed files with 17 additions and 60 deletions

View File

@ -42,19 +42,6 @@
#include "parser/scansup.h"
#include "utils/int8.h"
/*
* Translate the input language name to lower case, and truncate if needed.
*
* Returns a palloc'd string
*/
char *
case_translate_language_name(const char *input)
{
return downcase_truncate_identifier(input, strlen(input), false);
}
/*
* Extract a string value (otherwise uninterpreted) from a DefElem.
*/