mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03: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:
@ -2308,6 +2308,9 @@ GetCommandLogLevel(Node *parsetree)
|
|||||||
{
|
{
|
||||||
LogStmtLevel lev;
|
LogStmtLevel lev;
|
||||||
|
|
||||||
|
if (parsetree == NULL)
|
||||||
|
return LOGSTMT_ALL;
|
||||||
|
|
||||||
switch (nodeTag(parsetree))
|
switch (nodeTag(parsetree))
|
||||||
{
|
{
|
||||||
/* raw plannable queries */
|
/* raw plannable queries */
|
||||||
|
Reference in New Issue
Block a user