aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-03 19:01:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-03 19:01:35 +0000
commit64b9dfa56f26190d7fce953789db28626f0be200 (patch)
tree056d8874d70502e56779d3d111e5fec09d6b0f49 /src
parente6d6713ceb38c168d4a3b69dfb823529bb0144ef (diff)
downloadpostgresql-64b9dfa56f26190d7fce953789db28626f0be200.tar.gz
postgresql-64b9dfa56f26190d7fce953789db28626f0be200.zip
Back-patch the other part of Karel's formatting bug fix.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/formatting.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index fb597a10547..3236869565c 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);
}