|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.68 2000/03/18 18:03:09 tgl Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.68.2.1 2000/06/01 22:23:10 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -42,6 +42,7 @@ static char *parseCh;
|
42 | 42 | /* set up my input handler --- need one flavor for flex, one for lex*/
|
43 | 43 | #if defined(FLEX_SCANNER)
|
44 | 44 |
|
| 45 | +#defineYY_NEVER_INTERACTIVE1 |
45 | 46 | #defineYY_NO_UNPUT
|
46 | 47 | staticintmyinput(char* buf,int max);
|
47 | 48 | #undef YY_INPUT
|
@@ -325,6 +326,12 @@ other.
|
325 | 326 | }
|
326 | 327 | <xd>{xdstop}{
|
327 | 328 | BEGIN(INITIAL);
|
| 329 | +if (strlen(literalbuf) >= NAMEDATALEN) |
| 330 | +{ |
| 331 | +elog(NOTICE,"identifier\"%s\" will be truncated to\"%.*s\"", |
| 332 | + literalbuf, NAMEDATALEN-1, literalbuf); |
| 333 | +literalbuf[NAMEDATALEN-1] ='\0'; |
| 334 | +} |
328 | 335 | yylval.str =pstrdup(literalbuf);
|
329 | 336 | return IDENT;
|
330 | 337 | }
|
|