From c91b8bc5373719b1dc57e5ae57a99ef554097a25 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 14 Sep 2002 19:59:20 +0000 Subject: Cosmetic fixes from Neil Conway. --- src/backend/commands/prepare.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/commands/prepare.c') diff --git a/src/backend/commands/prepare.c b/src/backend/commands/prepare.c index cf869ed75e8..1d2e42b8ce9 100644 --- a/src/backend/commands/prepare.c +++ b/src/backend/commands/prepare.c @@ -6,7 +6,7 @@ * Copyright (c) 2002, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.2 2002/09/04 20:31:15 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.3 2002/09/14 19:59:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -248,7 +248,7 @@ StoreQuery(const char *stmt_name, List *query_list, List *plan_list, elog(ERROR, "Prepared statement with name \"%s\" already exists", stmt_name); - /* Okay. Make a permanent memory context for the hashtable entry */ + /* Make a permanent memory context for the hashtable entry */ entrycxt = AllocSetContextCreate(TopMemoryContext, stmt_name, 1024, @@ -399,8 +399,8 @@ DeallocateQuery(DeallocateStmt *stmt) stmt->name); /* Flush the context holding the subsidiary data */ - if (MemoryContextIsValid(entry->context)) - MemoryContextDelete(entry->context); + Assert(MemoryContextIsValid(entry->context)); + MemoryContextDelete(entry->context); /* Now we can remove the hash table entry */ hash_search(prepared_queries, key, HASH_REMOVE, NULL); -- cgit v1.2.3