summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-exec.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-07-13 16:35:04 +0000
committerBruce Momjian <bruce@momjian.us>1998-07-13 16:35:04 +0000
commit5aea4062d68ae49bca3131a285793b932930cc43 (patch)
tree5e6ae9f17216a2a7da0fb7bc6f584b21643a8dfb /src/interfaces/libpq/fe-exec.c
parent8bac4ca87b6cdaaf8fcea1e78c31be64ee4312ea (diff)
Inline function, rename libpq variablees, change lrel to lockrel.
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r--src/interfaces/libpq/fe-exec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 2a80e2215ca..0feb26ca31c 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.58 1998/07/13 02:41:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.59 1998/07/13 16:35:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -497,12 +497,12 @@ getRowDescriptions(PGconn *conn)
for (i = 0; i < nfields; i++)
{
char typName[MAX_MESSAGE_LEN];
- int adtid;
+ int typid;
int typlen;
int atttypmod = -1;
if (pqGets(typName, MAX_MESSAGE_LEN, conn) ||
- pqGetInt(&adtid, 4, conn) ||
+ pqGetInt(&typid, 4, conn) ||
pqGetInt(&typlen, 2, conn) ||
pqGetInt(&atttypmod, 4, conn))
{
@@ -510,7 +510,7 @@ getRowDescriptions(PGconn *conn)
return EOF;
}
result->attDescs[i].name = strdup(typName);
- result->attDescs[i].adtid = adtid;
+ result->attDescs[i].typid = typid;
result->attDescs[i].typlen = (short) typlen;
result->attDescs[i].atttypmod = atttypmod;
}
@@ -1272,7 +1272,7 @@ PQftype(PGresult *res, int field_num)
return InvalidOid;
}
if (res->attDescs)
- return res->attDescs[field_num].adtid;
+ return res->attDescs[field_num].typid;
else
return InvalidOid;
}