Skip to content

Commit 857a5d6

Browse files
committed
Fix segmentation fault that an empty prepared statement could cause.
Back-patch to all supported branches. Per bug #11335 from Haruka Takatsuka
1 parent c1bbabe commit 857a5d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/tcop/utility.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,9 @@ GetCommandLogLevel(Node *parsetree)
22622262
{
22632263
LogStmtLevel lev;
22642264

2265+
if (parsetree == NULL)
2266+
return LOGSTMT_ALL;
2267+
22652268
switch (nodeTag(parsetree))
22662269
{
22672270
/* raw plannable queries */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy