diff options
Diffstat (limited to 'src/backend/tcop')
-rw-r--r-- | src/backend/tcop/fastpath.c | 12 | ||||
-rw-r--r-- | src/backend/tcop/postgres.c | 7 |
2 files changed, 5 insertions, 14 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index fba983eff64..cd1911f1e9e 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.95 2007/01/05 22:19:39 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.96 2007/03/03 19:32:54 neilc Exp $ * * NOTES * This cruft is the server side of PQfn. @@ -480,10 +480,7 @@ parse_fcall_arguments(StringInfo msgBuf, struct fp_info * fip, argsize))); /* Reset abuf to empty, and insert raw data into it */ - abuf.len = 0; - abuf.data[0] = '\0'; - abuf.cursor = 0; - + resetStringInfo(&abuf); appendBinaryStringInfo(&abuf, pq_getmsgbytes(msgBuf, argsize), argsize); @@ -613,10 +610,7 @@ parse_fcall_arguments_20(StringInfo msgBuf, struct fp_info * fip, argsize))); /* Reset abuf to empty, and insert raw data into it */ - abuf.len = 0; - abuf.data[0] = '\0'; - abuf.cursor = 0; - + resetStringInfo(&abuf); appendBinaryStringInfo(&abuf, pq_getmsgbytes(msgBuf, argsize), argsize); diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index afb6b4db0a1..cfb6731b234 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.526 2007/03/02 23:37:22 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.527 2007/03/03 19:32:54 neilc Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -205,10 +205,7 @@ InteractiveBackend(StringInfo inBuf) printf("backend> "); fflush(stdout); - /* Reset inBuf to empty */ - inBuf->len = 0; - inBuf->data[0] = '\0'; - inBuf->cursor = 0; + resetStringInfo(inBuf); for (;;) { |