Add C comment that do_to_timestamp() lacks error checking.

REL9_0_ALPHA5_BRANCH
Bruce Momjian 16 years ago
parent bfd0cd5568
commit 89ce2bfc13
  1. 5
      src/backend/utils/adt/formatting.c

@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
* formatting.c * formatting.c
* *
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.166 2010/02/23 16:14:26 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.167 2010/02/25 18:36:14 momjian Exp $
* *
* *
* Portions Copyright (c) 1999-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1999-2010, PostgreSQL Global Development Group
@ -3097,6 +3097,9 @@ to_date(PG_FUNCTION_ARGS)
* *
* The TmFromChar is then analysed and converted into the final results in * The TmFromChar is then analysed and converted into the final results in
* struct 'tm' and 'fsec'. * struct 'tm' and 'fsec'.
*
* This function does very little error checking, e.g.
* to_timestamp('20096040','YYYYMMDD') works
*/ */
static void static void
do_to_timestamp(text *date_txt, text *fmt, do_to_timestamp(text *date_txt, text *fmt,

Loading…
Cancel
Save