mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 05:21:27 +03:00
Use PqMsg_* macros in postgres.c.
Commit f4b54e1ed9, which introduced macros for protocol characters, missed updating a couple of places in postgres.c. Author: Dave Cramer Reviewed-by: Fabrízio de Royes Mello Discussion: https://postgr.es/m/CADK3HHJUVBPoVOmFesPB-fN8_dYt%2BQELV2UB6jxOW2Z40qF-qw%40mail.gmail.com Backpatch-through: 17
This commit is contained in:
parent
d7905aa1da
commit
e43537cdc3
@ -323,7 +323,7 @@ InteractiveBackend(StringInfo inBuf)
|
|||||||
printf("statement: %s\n", inBuf->data);
|
printf("statement: %s\n", inBuf->data);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
return 'Q';
|
return PqMsg_Query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -4966,9 +4966,9 @@ PostgresMain(const char *dbname, const char *username)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 'X' means that the frontend is closing down the socket. EOF
|
* PqMsg_Terminate means that the frontend is closing down the
|
||||||
* means unexpected loss of frontend connection. Either way,
|
* socket. EOF means unexpected loss of frontend connection.
|
||||||
* perform normal shutdown.
|
* Either way, perform normal shutdown.
|
||||||
*/
|
*/
|
||||||
case EOF:
|
case EOF:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user