1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +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:
Fujii Masao 2014-09-05 02:17:57 +09:00
parent 9c4b7ed13d
commit 78b1228efe

View File

@ -2184,6 +2184,9 @@ GetCommandLogLevel(Node *parsetree)
{
LogStmtLevel lev;
if (parsetree == NULL)
return LOGSTMT_ALL;
switch (nodeTag(parsetree))
{
/* raw plannable queries */