projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643cad1
)
Fix segmentation fault that an empty prepared statement could cause.
author
Fujii Masao
<fujii@postgresql.org>
Thu, 4 Sep 2014 17:17:57 +0000
(
02:17
+0900)
committer
Fujii Masao
<fujii@postgresql.org>
Thu, 4 Sep 2014 17:19:14 +0000
(
02:19
+0900)
Back-patch to all supported branches.
Per bug #11335 from Haruka Takatsuka
src/backend/tcop/utility.c
patch
|
blob
|
history
diff --git
a/src/backend/tcop/utility.c
b/src/backend/tcop/utility.c
index 0558ea34b054db356ff081abc0b10d7bb2b0186d..18c74525fa02fc940d6529df5adaa59573545728 100644
(file)
--- a/
src/backend/tcop/utility.c
+++ b/
src/backend/tcop/utility.c
@@
-2452,6
+2452,9
@@
GetCommandLogLevel(Node *parsetree)
{
LogStmtLevel lev;
+ if (parsetree == NULL)
+ return LOGSTMT_ALL;
+
switch (nodeTag(parsetree))
{
/* raw plannable queries */