aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-14 17:06:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-14 17:06:37 +0000
commitba7fd49de5e32485c343187446fdd8cf656471c8 (patch)
treef56621b01f2f0f21bdb1c6949c3d00761f492672 /src/include
parent599e225c114d74eaf4b5d24190abbb4962948073 (diff)
downloadpostgresql-ba7fd49de5e32485c343187446fdd8cf656471c8.tar.gz
postgresql-ba7fd49de5e32485c343187446fdd8cf656471c8.zip
Defend against crash while processing Describe Statement or Describe Portal
messages, when client attempts to execute these outside a transaction (start one) or in a failed transaction (reject message, except for COMMIT/ROLLBACK statements which we can handle). Per report from Francisco Figueiredo Jr.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/commands/prepare.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h
index b6c315bd42d..4e92cf12e6f 100644
--- a/src/include/commands/prepare.h
+++ b/src/include/commands/prepare.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/commands/prepare.h,v 1.14 2005/06/22 17:45:46 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/commands/prepare.h,v 1.14.2.1 2005/12/14 17:06:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -59,6 +59,7 @@ extern PreparedStatement *FetchPreparedStatement(const char *stmt_name,
extern void DropPreparedStatement(const char *stmt_name, bool showError);
extern List *FetchPreparedStatementParams(const char *stmt_name);
extern TupleDesc FetchPreparedStatementResultDesc(PreparedStatement *stmt);
+extern bool PreparedStatementReturnsTuples(PreparedStatement *stmt);
extern List *FetchPreparedStatementTargetList(PreparedStatement *stmt);
#endif /* PREPARE_H */