mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04: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
c1bbabee91
commit
857a5d6b59
1 changed files with 3 additions and 0 deletions
|
|
@ -2262,6 +2262,9 @@ GetCommandLogLevel(Node *parsetree)
|
|||
{
|
||||
LogStmtLevel lev;
|
||||
|
||||
if (parsetree == NULL)
|
||||
return LOGSTMT_ALL;
|
||||
|
||||
switch (nodeTag(parsetree))
|
||||
{
|
||||
/* raw plannable queries */
|
||||
|
|
|
|||
Loading…
Reference in a new issue