We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36289fb commit 0672a3cCopy full SHA for 0672a3c
src/backend/parser/scan.l
@@ -9,7 +9,7 @@
9
*
10
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.70 2000/05/29 05:44:54 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.71 2000/06/01 22:21:05 tgl Exp $
13
14
*-------------------------------------------------------------------------
15
*/
@@ -326,6 +326,12 @@ other .
326
}
327
<xd>{xdstop} {
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
+ }
335
yylval.str = pstrdup(literalbuf);
336
return IDENT;
337
0 commit comments