Skip to content

Commit 89ce2bf

Browse files
committed
Add C comment that do_to_timestamp() lacks error checking.
1 parent bfd0cd5 commit 89ce2bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.166 2010/02/23 16:14:26 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.167 2010/02/25 18:36:14 momjian Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2010, PostgreSQL Global Development Group
@@ -3097,6 +3097,9 @@ to_date(PG_FUNCTION_ARGS)
30973097
*
30983098
* The TmFromChar is then analysed and converted into the final results in
30993099
* struct 'tm' and 'fsec'.
3100+
*
3101+
* This function does very little error checking, e.g.
3102+
* to_timestamp('20096040','YYYYMMDD') works
31003103
*/
31013104
static void
31023105
do_to_timestamp(text *date_txt, text *fmt,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy