aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-protocol2.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-06-10 15:20:04 -0400
committerBruce Momjian <bruce@momjian.us>2012-06-10 15:20:04 -0400
commit927d61eeff78363ea3938c818d07e511ebaf75cf (patch)
tree2f0bcecf53327f76272a8ce690fa62505520fab9 /src/interfaces/libpq/fe-protocol2.c
parent60801944fa105252b48ea5688d47dfc05c695042 (diff)
downloadpostgresql-927d61eeff78363ea3938c818d07e511ebaf75cf.tar.gz
postgresql-927d61eeff78363ea3938c818d07e511ebaf75cf.zip
Run pgindent on 9.2 source tree in preparation for first 9.3
commit-fest.
Diffstat (limited to 'src/interfaces/libpq/fe-protocol2.c')
-rw-r--r--src/interfaces/libpq/fe-protocol2.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/interfaces/libpq/fe-protocol2.c b/src/interfaces/libpq/fe-protocol2.c
index 43f9954dd1c..8dbd6b69823 100644
--- a/src/interfaces/libpq/fe-protocol2.c
+++ b/src/interfaces/libpq/fe-protocol2.c
@@ -773,10 +773,11 @@ getRowDescriptions(PGconn *conn)
goto set_error_result;
advance_and_error:
+
/*
- * Discard the failed message. Unfortunately we don't know for sure
- * where the end is, so just throw away everything in the input buffer.
- * This is not very desirable but it's the best we can do in protocol v2.
+ * Discard the failed message. Unfortunately we don't know for sure where
+ * the end is, so just throw away everything in the input buffer. This is
+ * not very desirable but it's the best we can do in protocol v2.
*/
conn->inStart = conn->inEnd;
@@ -829,6 +830,7 @@ getAnotherTuple(PGconn *conn, bool binary)
int nfields = result->numAttributes;
const char *errmsg;
PGdataValue *rowbuf;
+
/* the backend sends us a bitmap of which attributes are null */
char std_bitmap[64]; /* used unless it doesn't fit */
char *bitmap = std_bitmap;
@@ -962,10 +964,11 @@ getAnotherTuple(PGconn *conn, bool binary)
goto set_error_result;
advance_and_error:
+
/*
- * Discard the failed message. Unfortunately we don't know for sure
- * where the end is, so just throw away everything in the input buffer.
- * This is not very desirable but it's the best we can do in protocol v2.
+ * Discard the failed message. Unfortunately we don't know for sure where
+ * the end is, so just throw away everything in the input buffer. This is
+ * not very desirable but it's the best we can do in protocol v2.
*/
conn->inStart = conn->inEnd;