Skip to content

Commit 089f4b9

Browse files
committed
interval_abs():
Add C comment about why there is no interval_abs(): it is unclear what value to return: http://archives.postgresql.org/pgsql-general/2009-10/msg01031.php http://archives.postgresql.org/pgsql-general/2009-11/msg00041.php
1 parent e7ec022 commit 089f4b9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/utils/adt/timestamp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.203 2009/09/04 11:20:22 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.204 2009/11/10 18:41:24 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2779,6 +2779,12 @@ interval_mi(PG_FUNCTION_ARGS)
27792779
PG_RETURN_INTERVAL_P(result);
27802780
}
27812781

2782+
/*
2783+
* There is no interval_abs(): it is unclear what value to return:
2784+
* http://archives.postgresql.org/pgsql-general/2009-10/msg01031.php
2785+
* http://archives.postgresql.org/pgsql-general/2009-11/msg00041.php
2786+
*/
2787+
27822788
Datum
27832789
interval_mul(PG_FUNCTION_ARGS)
27842790
{

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