diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-05-14 17:18:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-05-14 17:18:14 +0000 |
commit | 683333644d1ca374e208a2174910c42e19134b1e (patch) | |
tree | 401ed324a82110ae78580c5c7898e72c603309d8 /src | |
parent | fdd9a344caf7727fee5015893461ca33985ae1cd (diff) | |
download | postgresql-683333644d1ca374e208a2174910c42e19134b1e.tar.gz postgresql-683333644d1ca374e208a2174910c42e19134b1e.zip |
Pass atttypmod to the frontend.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/common/printtup.c | 5 | ||||
-rw-r--r-- | src/backend/tcop/dest.c | 3 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 9 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/backend/access/common/printtup.c b/src/backend/access/common/printtup.c index 02e60c899ae..8b27415cf68 100644 --- a/src/backend/access/common/printtup.c +++ b/src/backend/access/common/printtup.c @@ -8,7 +8,7 @@ * * * 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, AttributeTupleForm attributeP, 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, attributeP->attname.data, value != NULL ? " = \"" : "", @@ -149,6 +149,7 @@ printatt(unsigned attributeId, value != NULL ? "\"" : "", (unsigned int) (attributeP->atttypid), attributeP->attlen, + attributeP->atttypmod, attributeP->attbyval ? 't' : 'f'); } diff --git a/src/backend/tcop/dest.c b/src/backend/tcop/dest.c index 74da434f364..4340cac5bc1 100644 --- a/src/backend/tcop/dest.c +++ b/src/backend/tcop/dest.c @@ -7,7 +7,7 @@ * * * 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, * oops.. */ pq_putint((int) attrs[i]->atttypid, sizeof(attrs[i]->atttypid)); pq_putint(attrs[i]->attlen, sizeof(attrs[i]->attlen)); + pq_putint(attrs[i]->atttypmod, sizeof(attrs[i]->atttypmod)); } } break; diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index ae770e197aa..c48e9aa9b15 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -7,7 +7,7 @@ * * * 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) if (pqGets(typName, MAX_MESSAGE_LEN, conn) || pqGetInt(&adtid, 4, conn) || - pqGetInt(&adtsize, 2, conn) -#if 0 /* backend support not there yet */ - || pqGetInt(&adtmod, 2, conn) -#endif -) + pqGetInt(&adtsize, 2, conn) || + pqGetInt(&adtmod, 2, conn)) { PQclear(result); return EOF; |