From ae526b407039dd743eb318a9f05eba1ee7594738 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 Jun 2000 01:11:16 +0000 Subject: Another round of updates for new fmgr, mostly in the datetime code. --- src/include/utils/formatting.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/include/utils/formatting.h') diff --git a/src/include/utils/formatting.h b/src/include/utils/formatting.h index 36cc381b36..327b83f6e8 100644 --- a/src/include/utils/formatting.h +++ b/src/include/utils/formatting.h @@ -2,7 +2,7 @@ /* ----------------------------------------------------------------------- * formatting.h * - * $Id: formatting.h,v 1.4 2000/04/12 17:16:55 momjian Exp $ + * $Id: formatting.h,v 1.5 2000/06/09 01:11:15 tgl Exp $ * * * Portions Copyright (c) 1999-2000, PostgreSQL, Inc @@ -18,9 +18,12 @@ #ifndef _FORMATTING_H_ #define _FORMATTING_H_ -extern text *timestamp_to_char(Timestamp *dt, text *fmt); -extern Timestamp *to_timestamp(text *date_str, text *fmt); -extern DateADT to_date(text *date_str, text *fmt); +#include "fmgr.h" + + +extern Datum timestamp_to_char(PG_FUNCTION_ARGS); +extern Datum to_timestamp(PG_FUNCTION_ARGS); +extern Datum to_date(PG_FUNCTION_ARGS); extern Numeric numeric_to_number(text *value, text *fmt); extern text *numeric_to_char(Numeric value, text *fmt); extern text *int4_to_char(int32 value, text *fmt); -- cgit v1.2.1