File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2001,6 +2001,10 @@ Fri, 17 Mar 2006 16:38:19 +0100
2001
2001
Mo Apr 24 11:40:05 CEST 2006
2002
2002
2003
2003
- Fixed memory leak bugs found by Martijn Oosterhout.
2004
+
2005
+ Mi Mai 31 10:10:36 CEST 2006
2006
+
2007
+ - Fixed PGTYPESdate_from_timestamp because some characters got lost there
2004
2008
- Set ecpg library version to 5.2.
2005
2009
- Set ecpg version to 4.2.1.
2006
2010
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.27 2006/03/11 04:38:39 momjian Exp $ */
1
+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.28 2006/05/31 08:12:48 meskes Exp $ */
2
2
3
3
#include "postgres_fe.h"
4
4
@@ -19,16 +19,16 @@ PGTYPESdate_from_timestamp(timestamp dt)
19
19
20
20
dDate = 0 ; /* suppress compiler warning */
21
21
22
- if (TIMESTAMP_NOT_FINITE (dt ))
23
- return
24
-
22
+ if (!TIMESTAMP_NOT_FINITE (dt ))
23
+ {
25
24
#ifdef HAVE_INT64_TIMESTAMP
26
25
/* Microseconds to days */
27
- dDate = (dt / USECS_PER_DAY );
26
+ dDate = (dt / USECS_PER_DAY );
28
27
#else
29
28
/* Seconds to days */
30
- dDate = (dt / (double ) SECS_PER_DAY );
29
+ dDate = (dt / (double ) SECS_PER_DAY );
31
30
#endif
31
+ }
32
32
33
33
return dDate ;
34
34
}
You can’t perform that action at this time.
0 commit comments