*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.30 1998/02/13 03:27:45 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.31 1998/02/21 16:58:24 momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
char buf[500];
appendStringInfo(str, "RESDOM");
- sprintf(buf, " :resno %hd ", node->resno);
+ sprintf(buf, " :resno %d ", node->resno);
appendStringInfo(str, buf);
sprintf(buf, " :restype %u ", node->restype);
appendStringInfo(str, buf);
appendStringInfo(str, "VAR");
sprintf(buf, " :varno %d ", node->varno);
appendStringInfo(str, buf);
- sprintf(buf, " :varattno %hd ", node->varattno);
+ sprintf(buf, " :varattno %d ", node->varattno);
appendStringInfo(str, buf);
sprintf(buf, " :vartype %u ", node->vartype);
appendStringInfo(str, buf);
appendStringInfo(str, "CONST");
sprintf(buf, " :consttype %u ", node->consttype);
appendStringInfo(str, buf);
- sprintf(buf, " :constlen %hd ", node->constlen);
+ sprintf(buf, " :constlen %d ", node->constlen);
appendStringInfo(str, buf);
appendStringInfo(str, " :constisnull ");
appendStringInfo(str, node->constisnull ? "true" : "false");
appendStringInfo(str, "PARAM");
sprintf(buf, " :paramkind %d ", node->paramkind);
appendStringInfo(str, buf);
- sprintf(buf, " :paramid %hd ", node->paramid);
+ sprintf(buf, " :paramid %d ", node->paramid);
appendStringInfo(str, buf);
appendStringInfo(str, " :paramname ");
appendStringInfo(str, node->paramname);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.25 1998/02/13 03:27:47 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.26 1998/02/21 16:58:26 momjian Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
token = lsptok(NULL, &length); /* get :constlen */
token = lsptok(NULL, &length); /* now read it */
- local_node->constlen = strtoul(token,NULL,10);
+ local_node->constlen = strtol(token,NULL,10);
token = lsptok(NULL, &length); /* get :constisnull */
token = lsptok(NULL, &length); /* now read it */