aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-01-23 01:27:39 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-01-23 01:27:39 +0000
commit49581f9848a22affbfc7ca48719ead843837215e (patch)
tree6a57fba50636aa69bf3d0bd9c44878d87ac3d174 /src/backend
parent978d2385a8c1a265b6ff01e6b07810061118824d (diff)
downloadpostgresql-49581f9848a22affbfc7ca48719ead843837215e.tar.gz
postgresql-49581f9848a22affbfc7ca48719ead843837215e.zip
updated install file
updated date/time types doc fixed small psql bug removed libpq code that lower-cased db names make notice when long identifier is truncated
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/parser/scan.l7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index 83afeb7a418..090f5911db3 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.61 2000/01/20 05:26:53 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.62 2000/01/23 01:27:35 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -338,8 +338,11 @@ other .
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
if (i >= NAMEDATALEN)
+ {
+ elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"",
+ yytext, NAMEDATALEN-1, yytext);
yytext[NAMEDATALEN-1] = '\0';
-
+ }
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
return keyword->value;