Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6427775
)
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:50 +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 c096b52bfd66c71812180a5460196ec9043d0bb0..2d065b99f3cb5822c81de2c2303a47be3880adf0 100644
(file)
--- a/
src/backend/tcop/utility.c
+++ b/
src/backend/tcop/utility.c
@@
-2308,6
+2308,9
@@
GetCommandLogLevel(Node *parsetree)
{
LogStmtLevel lev;
+ if (parsetree == NULL)
+ return LOGSTMT_ALL;
+
switch (nodeTag(parsetree))
{
/* raw plannable queries */