mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +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:
parent
3eb02dc045
commit
52eed3d426
@ -2429,6 +2429,9 @@ GetCommandLogLevel(Node *parsetree)
|
||||
{
|
||||
LogStmtLevel lev;
|
||||
|
||||
if (parsetree == NULL)
|
||||
return LOGSTMT_ALL;
|
||||
|
||||
switch (nodeTag(parsetree))
|
||||
{
|
||||
/* raw plannable queries */
|
||||
|
Loading…
x
Reference in New Issue
Block a user