Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
085e7c2f
Commit
085e7c2f
authored
May 31, 2006
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Somehow a ";" got lost which changed the logic. This btw is the first fix resulting from SoC.
parent
a0ffab35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/datetime.c
+6
-6
No files found.
src/interfaces/ecpg/ChangeLog
View file @
085e7c2f
...
...
@@ -2001,6 +2001,10 @@ Fri, 17 Mar 2006 16:38:19 +0100
Mo Apr 24 11:40:05 CEST 2006
- Fixed memory leak bugs found by Martijn Oosterhout.
Mi Mai 31 10:10:36 CEST 2006
- Fixed PGTYPESdate_from_timestamp because some characters got lost there
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
src/interfaces/ecpg/pgtypeslib/datetime.c
View file @
085e7c2f
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.2
7 2006/03/11 04:38:39 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.2
8 2006/05/31 08:12:48 meskes
Exp $ */
#include "postgres_fe.h"
...
...
@@ -19,16 +19,16 @@ PGTYPESdate_from_timestamp(timestamp dt)
dDate
=
0
;
/* suppress compiler warning */
if
(
TIMESTAMP_NOT_FINITE
(
dt
))
return
if
(
!
TIMESTAMP_NOT_FINITE
(
dt
))
{
#ifdef HAVE_INT64_TIMESTAMP
/* Microseconds to days */
dDate
=
(
dt
/
USECS_PER_DAY
);
dDate
=
(
dt
/
USECS_PER_DAY
);
#else
/* Seconds to days */
dDate
=
(
dt
/
(
double
)
SECS_PER_DAY
);
dDate
=
(
dt
/
(
double
)
SECS_PER_DAY
);
#endif
}
return
dDate
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment