aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/fastpath.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-12-06 22:57:36 +0000
committerBruce Momjian <bruce@momjian.us>1997-12-06 22:57:36 +0000
commita68a132a6c0f90e5d03e8409e843e6117d5412a2 (patch)
treeaccca55310ac4cd716800dcb6d27aa37c033027b /src/backend/tcop/fastpath.c
parent1932d92161b35339a5947eded598233821ca2676 (diff)
downloadpostgresql-a68a132a6c0f90e5d03e8409e843e6117d5412a2.tar.gz
postgresql-a68a132a6c0f90e5d03e8409e843e6117d5412a2.zip
Add VARHDRSZ where needed. Many places just used 4.
Diffstat (limited to 'src/backend/tcop/fastpath.c')
-rw-r--r--src/backend/tcop/fastpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c
index 0573ea2fc88..b4fb2ebaec4 100644
--- a/src/backend/tcop/fastpath.c
+++ b/src/backend/tcop/fastpath.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.7 1997/09/18 20:21:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.8 1997/12/06 22:57:03 momjian Exp $
*
* NOTES
* This cruft is the server side of PQfn.
@@ -101,7 +101,7 @@ SendFunctionResult(Oid fid, /* function id */
{ /* by-reference ... */
if (retlen < 0)
{ /* ... varlena */
- pq_putint(VARSIZE(retval) - VARHDRSZ, 4);
+ pq_putint(VARSIZE(retval) - VARHDRSZ, VARHDRSZ);
pq_putnchar(VARDATA(retval), VARSIZE(retval) - VARHDRSZ);
}
else