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

Commit4a68d50

Browse files
Use PqMsg_* macros in postgres.c.
Commitf4b54e1, which introduced macros for protocol characters,missed updating a couple of places in postgres.c.Author: Dave CramerReviewed-by: Fabrízio de Royes MelloDiscussion:https://postgr.es/m/CADK3HHJUVBPoVOmFesPB-fN8_dYt%2BQELV2UB6jxOW2Z40qF-qw%40mail.gmail.comBackpatch-through: 17
1 parentf7e1b38 commit4a68d50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ InteractiveBackend(StringInfo inBuf)
310310
printf("statement: %s\n",inBuf->data);
311311
fflush(stdout);
312312

313-
return'Q';
313+
returnPqMsg_Query;
314314
}
315315

316316
/*
@@ -4897,9 +4897,9 @@ PostgresMain(const char *dbname, const char *username)
48974897
break;
48984898

48994899
/*
4900-
*'X' means that the frontend is closing down the socket. EOF
4901-
* means unexpected loss of frontend connection. Either way,
4902-
* perform normal shutdown.
4900+
*PqMsg_Terminate means that the frontend is closing down the
4901+
*socket. EOFmeans unexpected loss of frontend connection.
4902+
*Either way,perform normal shutdown.
49034903
*/
49044904
caseEOF:
49054905

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp