psqlodbc.git / summary / log / commit / refs
commit 7050f4be02fa0fb8584a0620025bf292ce4b9bea
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Wed Oct 29 20:39:34 2014 +0000
Remove support for receiving 'P' or 'B' responses from server.
Server versions >= 7.4 don't send these anymore.
connection.c | 3 ---
qresult.c | 8 +-------
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/connection.c b/connection.c
index f4c37fb4..d2fb5932 100644
--- a/connection.c
+++ b/connection.c
@@ -2969,9 +2969,6 @@ inolog("Discarded the first SAVEPOINT\n");
query_completed = TRUE;
break;
- case 'P': /* get the Portal name */
- SOCK_get_string(self->sock, msgbuffer, ERROR_MSG_LENGTH);
- break;
case 'T': /* Tuple results start here */
if (query_completed)
{
diff --git a/qresult.c b/qresult.c
index 50e4c32a..8509c473 100644
--- a/qresult.c
+++ b/qresult.c
@@ -1271,11 +1271,6 @@ inolog("reached_eof_now=%d\n", reached_eof_now);
inolog("id='%c' response_length=%d\n", id, response_length);
switch (id)
{
-
- case 'P':
- mylog("Portal name within tuples ?? just ignore\n");
- SOCK_get_string(sock, msgbuffer, ERROR_MSG_LENGTH);
- break;
case 'T':
mylog("Tuples within tuples ?? OK try to handle them\n");
QR_set_no_fetching_tuples(self);
@@ -1308,10 +1303,9 @@ inolog("id='%c' response_length=%d\n", id, response_length);
loopend = rcvend = TRUE;
break;
- case 'B': /* Tuples in binary format */
case 'D': /* Tuples in ASCII format */
- if (!QR_get_tupledata(self, id == 'B'))
+ if (!QR_get_tupledata(self, FALSE))
{
ret = FALSE;
loopend = TRUE;
[parent: b658d3f0fdd9]