Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6da740e

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 643cad1 commit 6da740e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/tcop/utility.c

+3
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,9 @@ GetCommandLogLevel(Node *parsetree)
24522452
{
24532453
LogStmtLevel lev;
24542454

2455+
if (parsetree == NULL)
2456+
return LOGSTMT_ALL;
2457+
24552458
switch (nodeTag(parsetree))
24562459
{
24572460
/* raw plannable queries */

0 commit comments

Comments
 (0)