From e61fd4ac7414a52714c3288889cc754d2e11c4a8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 10 Aug 2009 18:29:27 +0000 Subject: Support EEEE (scientific notation) in to_char(). Pavel Stehule, Brendan Jurd --- src/include/utils/numeric.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/utils/numeric.h') diff --git a/src/include/utils/numeric.h b/src/include/utils/numeric.h index 19452b54fa3..b1aa27d88dd 100644 --- a/src/include/utils/numeric.h +++ b/src/include/utils/numeric.h @@ -7,7 +7,7 @@ * * Copyright (c) 1998-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/utils/numeric.h,v 1.27 2009/01/01 17:24:02 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/numeric.h,v 1.28 2009/08/10 18:29:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -84,4 +84,9 @@ typedef NumericData *Numeric; #define PG_GETARG_NUMERIC_COPY(n) DatumGetNumericCopy(PG_GETARG_DATUM(n)) #define PG_RETURN_NUMERIC(x) return NumericGetDatum(x) +/* + * Utility functions in numeric.c + */ +extern char *numeric_out_sci(Numeric num, int scale); + #endif /* _PG_NUMERIC_H_ */ -- cgit v1.2.3