diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-18 20:53:48 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-18 20:53:48 +0000 |
commit | b99c63cfc029cc0552e98f652d1734aec1124a5b (patch) | |
tree | 6e18eedc0b8ebfc0d84479ed26d0ea9b12d8125d /src/backend/tcop/utility.c | |
parent | 022903f22e54cbc78b4acc1ef54f73d19a051630 (diff) |
Now that names are null terminated, no need to do all that NAMEDATALEN stuff.
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f0721423560..d8b79965a78 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.19 1997/08/18 02:14:52 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.20 1997/08/18 20:53:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -171,8 +171,8 @@ ProcessUtility(Node *parsetree, foreach (arg, args) { relname = strVal(lfirst(arg)); if (IsSystemRelationName(relname)) - elog(WARN, "class \"%-.*s\" is a system catalog", - NAMEDATALEN, relname); + elog(WARN, "class \"%s\" is a system catalog", + relname); rel = heap_openr (relname); if ( RelationIsValid (rel) ) { @@ -188,8 +188,8 @@ ProcessUtility(Node *parsetree, } #ifndef NO_SECURITY if (!pg_ownercheck(userName, relname, RELNAME)) - elog(WARN, "you do not own class \"%-.*s\"", - NAMEDATALEN, relname); + elog(WARN, "you do not own class \"%s\"", + relname); #endif } foreach (arg, args) { @@ -318,8 +318,8 @@ ProcessUtility(Node *parsetree, foreach (i, stmt->relNames) { relname = strVal(lfirst(i)); if (!pg_ownercheck(userName, relname, RELNAME)) - elog(WARN, "you do not own class \"%-.*s\"", - NAMEDATALEN, relname); + elog(WARN, "you do not own class \"%s\"", + relname); } #endif foreach (i, stmt->relNames) { |