File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.6 2003/08/04 02:40:20 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.7 2003/08/12 21:34:44 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -232,8 +232,7 @@ pqParseInput3(PGconn *conn)
232
232
if (pqGetInt (& (conn -> be_key ), 4 , conn ))
233
233
return ;
234
234
break ;
235
- case 'T' : /* row descriptions (start of query
236
- * results) */
235
+ case 'T' : /* Row Description */
237
236
if (conn -> result == NULL )
238
237
{
239
238
/* First 'T' in a query sequence */
@@ -253,6 +252,17 @@ pqParseInput3(PGconn *conn)
253
252
return ;
254
253
}
255
254
break ;
255
+ case 'n' : /* No Data */
256
+ /*
257
+ * NoData indicates that we will not be seeing a
258
+ * RowDescription message because the statement or
259
+ * portal inquired about doesn't return rows.
260
+ * Set up a COMMAND_OK result, instead of TUPLES_OK.
261
+ */
262
+ if (conn -> result == NULL )
263
+ conn -> result = PQmakeEmptyPGresult (conn ,
264
+ PGRES_COMMAND_OK );
265
+ break ;
256
266
case 'D' : /* Data Row */
257
267
if (conn -> result != NULL &&
258
268
conn -> result -> resultStatus == PGRES_TUPLES_OK )
You can’t perform that action at this time.
0 commit comments