aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/readfuncs.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-31 02:19:23 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-31 02:19:23 +0000
commita05ed5bc11ceef1ab98bd6cfdb7532266256c98c (patch)
treea91e407af845421429db765fe47762157201d0ce /src/backend/nodes/readfuncs.c
parent4477b6f6c262a828e21e6cc5f47b61a3e8032051 (diff)
downloadpostgresql-a05ed5bc11ceef1ab98bd6cfdb7532266256c98c.tar.gz
postgresql-a05ed5bc11ceef1ab98bd6cfdb7532266256c98c.zip
Fixes:
In postgres95/src/backend/nodes/readfuncs, lines 1188 and 1189, local_node->relname is taken to point to a NameType, while its defined as a pointer to char. Both the casting to Name and the call of namestrcpy should, IMHO, be changed appropriately (first patch). As far as I could see from the Linux signal header file, a signal handler is declared as typedef void (*__sighandler_t)(int); Few changes to postgres95/src/backend/storage/lmgr/proc.c seem appropriate to comply with this. Finally, postgres95/src/bin/pg_version/pg_version.c defines a function GetDataHome (by default, returning an integer) and returns NULL in the function, which isn't an integer... Submitted by: ernst.molitor@uni-bonn.de
Diffstat (limited to 'src/backend/nodes/readfuncs.c')
-rw-r--r--src/backend/nodes/readfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c
index fc909fe7aa9..f0d9e3b1aff 100644
--- a/src/backend/nodes/readfuncs.c
+++ b/src/backend/nodes/readfuncs.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.1.1.1 1996/07/09 06:21:33 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2 1996/07/31 02:18:48 scrappy Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -1185,8 +1185,8 @@ _readRangeTblEntry()
token++;
token[length - 2] = '\0';
- local_node->relname = (Name) palloc(NAMEDATALEN);
- namestrcpy(local_node->relname, token);
+ local_node->relname = (char *) palloc(NAMEDATALEN);
+ strcpy(local_node->relname, token);
token[length - 2] = '\"';
}