提交 6ce9c76b 编写于 作者: B Bruce Momjian

Fix libpq because it was reading from the backend as a short.

上级 dc189183
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.56 1998/07/09 03:29:08 scrappy Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.57 1998/07/13 00:01:44 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -504,7 +504,7 @@ getRowDescriptions(PGconn *conn) ...@@ -504,7 +504,7 @@ getRowDescriptions(PGconn *conn)
if (pqGets(typName, MAX_MESSAGE_LEN, conn) || if (pqGets(typName, MAX_MESSAGE_LEN, conn) ||
pqGetInt(&adtid, 4, conn) || pqGetInt(&adtid, 4, conn) ||
pqGetInt(&adtsize, 2, conn) || pqGetInt(&adtsize, 2, conn) ||
pqGetInt(&adtmod, 2, conn)) pqGetInt(&adtmod, 4, conn))
{ {
PQclear(result); PQclear(result);
return EOF; return EOF;
...@@ -512,7 +512,7 @@ getRowDescriptions(PGconn *conn) ...@@ -512,7 +512,7 @@ getRowDescriptions(PGconn *conn)
result->attDescs[i].name = strdup(typName); result->attDescs[i].name = strdup(typName);
result->attDescs[i].adtid = adtid; result->attDescs[i].adtid = adtid;
result->attDescs[i].adtsize = (short) adtsize; result->attDescs[i].adtsize = (short) adtsize;
result->attDescs[i].adtmod = (short) adtmod; result->attDescs[i].adtmod = adtmod;
} }
/* Success! */ /* Success! */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq-fe.h,v 1.31 1998/07/09 03:29:09 scrappy Exp $ * $Id: libpq-fe.h,v 1.32 1998/07/13 00:01:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -78,7 +78,7 @@ extern "C" ...@@ -78,7 +78,7 @@ extern "C"
char *name; /* type name */ char *name; /* type name */
Oid adtid; /* type id */ Oid adtid; /* type id */
short adtsize; /* type size */ short adtsize; /* type size */
short adtmod; /* type-specific modifier info */ int adtmod; /* type-specific modifier info */
} PGresAttDesc; } PGresAttDesc;
/* use char* for Attribute values, /* use char* for Attribute values,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册