aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-11-10 18:41:24 +0000
committerBruce Momjian <bruce@momjian.us>2009-11-10 18:41:24 +0000
commit089f4b921c3ae0947e7ffd0ad18be83afecc33a6 (patch)
tree9068b76dbb60d177549b48d508770a455d534838 /src
parente7ec0222660636870ad85cde25cf1778c9d82a0b (diff)
downloadpostgresql-089f4b921c3ae0947e7ffd0ad18be83afecc33a6.tar.gz
postgresql-089f4b921c3ae0947e7ffd0ad18be83afecc33a6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/timestamp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c
index a0a61a726af..4fbab2bb1b0 100644
--- a/src/backend/utils/adt/timestamp.c
+++ b/src/backend/utils/adt/timestamp.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.203 2009/09/04 11:20:22 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.204 2009/11/10 18:41:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2779,6 +2779,12 @@ interval_mi(PG_FUNCTION_ARGS)
PG_RETURN_INTERVAL_P(result);
}
+/*
+ * 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
+ */
+
Datum
interval_mul(PG_FUNCTION_ARGS)
{