Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfb7ed4

Browse files
committed
This is another example of why not allowing utility functions in SPI
would be a Bad Thing.For what it's worth, I found another case in libpq where you can get a Tmessage without a D that my utility patch needs to handle. I haveattachedthe updated patch against the 6.4.2 version ofsrc/interfaces/libpq/fe-exec.cJerry Gay
1 parentc10e6bc commitcfb7ed4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/interfaces/libpq/fe-exec.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.75 1999/03/14 16:42:15 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.76 1999/03/14 16:46:21 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -538,10 +538,11 @@ parseInput(PGconn *conn)
538538
return;
539539
if (pendingT) {
540540
/* Check the returned message */
541-
/* if it's a SELECT in a pendingT case, */
541+
/* if it's a SELECTor FETCHin a pendingT case, */
542542
/* then it probably means no rows returned. */
543543
/* We clear pendingT in that case. */
544-
if (strncmp(conn->result->cmdStatus,"SELECT",6)==0)
544+
if ((strncmp(conn->result->cmdStatus,"SELECT",6)==0)||
545+
(strncmp(conn->result->cmdStatus,"FETCH",5)==0))
545546
pendingT=0;
546547
}
547548
if (!pendingT)conn->asyncStatus=PGASYNC_READY;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp