mirror of
https://github.com/postgres/postgres.git
synced 2026-06-15 19:49:03 -04:00
Fix PQdescribePrepared with more than 7498 params
If a query has more than 7498 params, the ParameterDescription message exceeds the 30000 byte limit on messages that are not specifically marked as possibly being longer than that (VALID_LONG_MESSAGE_TYPE). To fix, add ParameterDescription to the list. Author: Ning Sun <classicning@gmail.com> Discussion: https://www.postgresql.org/message-id/dbfb4b65-0aa8-470a-8b87-b6496160b28a@gmail.com Backpatch-through: 14
This commit is contained in:
parent
3928b7a520
commit
e4183c667d
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@
|
|||
(id) == PqMsg_FunctionCallResponse || \
|
||||
(id) == PqMsg_NoticeResponse || \
|
||||
(id) == PqMsg_NotificationResponse || \
|
||||
(id) == PqMsg_RowDescription)
|
||||
(id) == PqMsg_RowDescription || \
|
||||
(id) == PqMsg_ParameterDescription)
|
||||
|
||||
|
||||
static void handleSyncLoss(PGconn *conn, char id, int msgLength);
|
||||
|
|
|
|||
Loading…
Reference in a new issue