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
a843053e
Commit
a843053e
authored
May 31, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress compile warnings on machines where the INT64CONST() decoration
is actually needed. Per Oliver Elphick.
parent
8b1ae8fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/utils/adt/date.c
src/backend/utils/adt/date.c
+2
-2
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+3
-3
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/dt_common.c
+1
-1
No files found.
src/backend/utils/adt/date.c
View file @
a843053e
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.9
7 2004/05/21 05:08:01
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.9
8 2004/05/31 18:53:17
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1461,7 +1461,7 @@ interval_time(PG_FUNCTION_ARGS)
}
else
if
(
result
<
0
)
{
days
=
(
-
result
+
INT64CONST
(
86400000000
-
1
)
)
/
INT64CONST
(
86400000000
);
days
=
(
-
result
+
INT64CONST
(
86400000000
)
-
1
)
/
INT64CONST
(
86400000000
);
result
+=
days
*
INT64CONST
(
86400000000
);
}
#else
...
...
src/backend/utils/adt/datetime.c
View file @
a843053e
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.12
8 2004/05/21 05:08:01
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.12
9 2004/05/31 18:53:17
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1209,7 +1209,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
tmask
|=
DTK_TIME_M
;
#ifdef HAVE_INT64_TIMESTAMP
dt2time
((
time
*
86400000000
),
dt2time
((
time
*
INT64CONST
(
86400000000
)
),
&
tm
->
tm_hour
,
&
tm
->
tm_min
,
&
tm
->
tm_sec
,
fsec
);
#else
dt2time
((
time
*
86400
),
...
...
@@ -1960,7 +1960,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
tmask
|=
DTK_TIME_M
;
#ifdef HAVE_INT64_TIMESTAMP
dt2time
((
time
*
86400000000
),
dt2time
((
time
*
INT64CONST
(
86400000000
)
),
&
tm
->
tm_hour
,
&
tm
->
tm_min
,
&
tm
->
tm_sec
,
fsec
);
#else
dt2time
((
time
*
86400
),
...
...
src/interfaces/ecpg/pgtypeslib/dt_common.c
View file @
a843053e
...
...
@@ -2255,7 +2255,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
tmask
|=
DTK_TIME_M
;
#ifdef HAVE_INT64_TIMESTAMP
dt2time
((
time
*
86400000000
),
&
tm
->
tm_hour
,
&
tm
->
tm_min
,
&
tm
->
tm_sec
,
fsec
);
dt2time
((
time
*
INT64CONST
(
86400000000
)
),
&
tm
->
tm_hour
,
&
tm
->
tm_min
,
&
tm
->
tm_sec
,
fsec
);
#else
dt2time
((
time
*
86400
),
&
tm
->
tm_hour
,
&
tm
->
tm_min
,
&
tm
->
tm_sec
,
fsec
);
#endif
...
...
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