Commit 68333364 authored by Bruce Momjian's avatar Bruce Momjian

Pass atttypmod to the frontend.

parent fdd9a344
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.27 1998/02/26 04:29:20 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.28 1998/05/14 17:18:12 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -141,7 +141,7 @@ printatt(unsigned attributeId, ...@@ -141,7 +141,7 @@ printatt(unsigned attributeId,
AttributeTupleForm attributeP, AttributeTupleForm attributeP,
char *value) char *value)
{ {
printf("\t%2d: %s%s%s%s\t(typeid = %u, len = %d, byval = %c)\n", printf("\t%2d: %s%s%s%s\t(typeid = %u, len = %d, typmod = %d, byval = %c)\n",
attributeId, attributeId,
attributeP->attname.data, attributeP->attname.data,
value != NULL ? " = \"" : "", value != NULL ? " = \"" : "",
...@@ -149,6 +149,7 @@ printatt(unsigned attributeId, ...@@ -149,6 +149,7 @@ printatt(unsigned attributeId,
value != NULL ? "\"" : "", value != NULL ? "\"" : "",
(unsigned int) (attributeP->atttypid), (unsigned int) (attributeP->atttypid),
attributeP->attlen, attributeP->attlen,
attributeP->atttypmod,
attributeP->attbyval ? 't' : 'f'); attributeP->attbyval ? 't' : 'f');
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.18 1998/05/06 23:49:59 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.19 1998/05/14 17:18:13 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -288,6 +288,7 @@ BeginCommand(char *pname, ...@@ -288,6 +288,7 @@ BeginCommand(char *pname,
* oops.. */ * oops.. */
pq_putint((int) attrs[i]->atttypid, sizeof(attrs[i]->atttypid)); pq_putint((int) attrs[i]->atttypid, sizeof(attrs[i]->atttypid));
pq_putint(attrs[i]->attlen, sizeof(attrs[i]->attlen)); pq_putint(attrs[i]->attlen, sizeof(attrs[i]->attlen));
pq_putint(attrs[i]->atttypmod, sizeof(attrs[i]->atttypmod));
} }
} }
break; break;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.51 1998/05/06 23:53:38 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.52 1998/05/14 17:18:14 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -492,11 +492,8 @@ getRowDescriptions(PGconn *conn) ...@@ -492,11 +492,8 @@ 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) ||
#if 0 /* backend support not there yet */ pqGetInt(&adtmod, 2, conn))
|| pqGetInt(&adtmod, 2, conn)
#endif
)
{ {
PQclear(result); PQclear(result);
return EOF; return EOF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment