mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-18 04:17:00 +08:00
Fix segmentation fault that an empty prepared statement could cause.
Back-patch to all supported branches. Per bug #11335 from Haruka Takatsuka
This commit is contained in:
@ -2452,6 +2452,9 @@ GetCommandLogLevel(Node *parsetree)
|
||||
{
|
||||
LogStmtLevel lev;
|
||||
|
||||
if (parsetree == NULL)
|
||||
return LOGSTMT_ALL;
|
||||
|
||||
switch (nodeTag(parsetree))
|
||||
{
|
||||
/* raw plannable queries */
|
||||
|
||||
Reference in New Issue
Block a user