From: Tom Lane Date: Wed, 3 Sep 2003 19:01:35 +0000 (+0000) Subject: Back-patch the other part of Karel's formatting bug fix. X-Git-Tag: REL7_3_5~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64b9dfa56f26190d7fce953789db28626f0be200;p=postgresql Back-patch the other part of Karel's formatting bug fix. --- diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index fb597a1054..3236869565 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.56.2.1 2003/09/03 15:00:07 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.56.2.2 2003/09/03 19:01:35 tgl Exp $ * * * Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group @@ -2924,7 +2924,7 @@ to_timestamp(PG_FUNCTION_ARGS) */ DCHCacheEntry *ent; - incache = 0; + incache = TRUE; if ((ent = DCH_cache_search(str)) == NULL) { @@ -2966,7 +2966,7 @@ to_timestamp(PG_FUNCTION_ARGS) pfree(date_str); pfree(str); - if (incache) + if (!incache) pfree(format); }