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

Commite43537c

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 parentd7905aa commite43537c

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
@@ -323,7 +323,7 @@ InteractiveBackend(StringInfo inBuf)
323323
printf("statement: %s\n",inBuf->data);
324324
fflush(stdout);
325325

326-
return'Q';
326+
returnPqMsg_Query;
327327
}
328328

329329
/*
@@ -4966,9 +4966,9 @@ PostgresMain(const char *dbname, const char *username)
49664966
break;
49674967

49684968
/*
4969-
*'X' means that the frontend is closing down the socket. EOF
4970-
* means unexpected loss of frontend connection. Either way,
4971-
* perform normal shutdown.
4969+
*PqMsg_Terminate means that the frontend is closing down the
4970+
*socket. EOFmeans unexpected loss of frontend connection.
4971+
*Either way,perform normal shutdown.
49724972
*/
49734973
caseEOF:
49744974

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp