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