diff options
| author | Tom Lane | 2005-12-14 17:07:00 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-12-14 17:07:00 +0000 |
| commit | b1ea82fee14c457a76ac65efca58155240dab950 (patch) | |
| tree | 52f6faf303fab8f58942c636e5785014a4c30d43 /src/include | |
| parent | 6acbe665f72b4e3c6757ba6977f3802960f4df00 (diff) | |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |
