diff options
Diffstat (limited to 'src/backend/commands/view.c')
| -rw-r--r-- | src/backend/commands/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c index a3b475f079..a892bf2b86 100644 --- a/src/backend/commands/view.c +++ b/src/backend/commands/view.c @@ -86,7 +86,7 @@ DefineVirtualRelation(const RangeVar *relation, List *tlist, bool replace) if (attrList == NIL) ereport(ERROR, (errcode(ERRCODE_INVALID_TABLE_DEFINITION), - errmsg("view must have at least one attribute"))); + errmsg("view must have at least one column"))); /* * Check to see if we want to replace an existing view. @@ -190,7 +190,7 @@ checkViewTupleDesc(TupleDesc newdesc, TupleDesc olddesc) newattr->atttypmod != oldattr->atttypmod) ereport(ERROR, (errcode(ERRCODE_INVALID_TABLE_DEFINITION), - errmsg("cannot change datatype of view column \"%s\"", + errmsg("cannot change data type of view column \"%s\"", NameStr(oldattr->attname)))); /* We can ignore the remaining attributes of an attribute... */ } |
