projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d90b5d0
)
Repair swapped sign for time minus time routine (time_mi_time()).
author
Thomas G. Lockhart
<
[email protected]
>
Wed, 21 Nov 2001 05:57:33 +0000
(
05:57
+0000)
committer
Thomas G. Lockhart
<
[email protected]
>
Wed, 21 Nov 2001 05:57:33 +0000
(
05:57
+0000)
Problem reported by Manuel Sugawara (
[email protected]
).
src/backend/utils/adt/date.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/date.c
b/src/backend/utils/adt/date.c
index 8fb2bbad29495f05d7d1b01a0179b3d5c624c789..044c310fbe1e367501c45314c945ec2cb7e55ff2 100644
(file)
--- a/
src/backend/utils/adt/date.c
+++ b/
src/backend/utils/adt/date.c
@@
-8,7
+8,7
@@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.6
3 2001/10/25 05:49:43 momjian
Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.6
4 2001/11/21 05:57:33 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
@@
-813,7
+813,7
@@
time_mi_time(PG_FUNCTION_ARGS)
result = (Interval *) palloc(sizeof(Interval));
- result->time = time
2 - time1
;
+ result->time = time
1 - time2
;
result->month = 0;
PG_RETURN_INTERVAL_P(result);