diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-10-31 04:49:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-10-31 04:49:44 +0000 |
commit | 4911c85e86a8491e97032515dee59a9612ba7e3a (patch) | |
tree | cb6bb426f852d013505d8a540db1e4967a9a52f3 /src/backend/parser/analyze.c | |
parent | 74c2f8e72915e058f83776d655711315440ae2b2 (diff) | |
download | postgresql-4911c85e86a8491e97032515dee59a9612ba7e3a.tar.gz postgresql-4911c85e86a8491e97032515dee59a9612ba7e3a.zip |
Add ALTER TABLE ADD UNIQUE regression tests from Christopher Kings-Lynne.
Add space between slash for ALTER TABLE / ADD ....
Regression and *.po updates to follow.
Diffstat (limited to 'src/backend/parser/analyze.c')
-rw-r--r-- | src/backend/parser/analyze.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 5a4534644cb..5b2f4362fb6 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.205 2001/10/28 06:25:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.206 2001/10/31 04:49:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1062,7 +1062,7 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) if (cxt->pkey != NULL || (OidIsValid(cxt->relOid) && relationHasPrimaryKey(cxt->relname))) - elog(ERROR, "%s/PRIMARY KEY multiple primary keys" + elog(ERROR, "%s / PRIMARY KEY multiple primary keys" " for table '%s' are not allowed", cxt->stmtType, cxt->relname); cxt->pkey = index; @@ -1291,8 +1291,8 @@ transformIndexConstraints(ParseState *pstate, CreateStmtContext *cxt) elog(ERROR, "%s: failed to make implicit index name", cxt->stmtType); - elog(NOTICE, "%s/%s will create implicit index '%s' for table '%s'", - cxt->stmtType, (index->primary ? "PRIMARY KEY" : "UNIQUE"), + elog(NOTICE, "%s / %s will create implicit index '%s' for table '%s'", + cxt->stmtType, (index->primary ? "ADD PRIMARY KEY" : "ADD UNIQUE"), index->idxname, cxt->relname); } } |