From b1ea82fee14c457a76ac65efca58155240dab950 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 14 Dec 2005 17:07:00 +0000 Subject: 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. --- src/include/commands/prepare.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h index fdbea2c6083..5c1fcfaa02e 100644 --- a/src/include/commands/prepare.h +++ b/src/include/commands/prepare.h @@ -6,7 +6,7 @@ * * Copyright (c) 2002-2003, PostgreSQL Global Development Group * - * $Id: prepare.h,v 1.8 2003/08/08 21:42:40 momjian Exp $ + * $Id: prepare.h,v 1.8.4.1 2005/12/14 17:07:00 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -58,5 +58,6 @@ 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); #endif /* PREPARE_H */ -- cgit v1.2.3