Commit d15c37ca authored by Bruce Momjian's avatar Bruce Momjian

Truncate identifiers at NAMEDATALEN length.

parent 3e873022
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.40 1998/06/16 07:29:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.41 1998/08/29 02:36:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -323,6 +323,8 @@ other .
if (isascii((unsigned char)yytext[i]) &&
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
if (i > NAMEDATALEN)
yytext[NAMEDATALEN] = '\0';
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
......@@ -400,6 +402,8 @@ other .
if (isascii((unsigned char)yytext[i]) &&
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
if (i > NAMEDATALEN)
yytext[NAMEDATALEN] = '\0';
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment