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
20f84809
Commit
20f84809
authored
Apr 08, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark TimeScales constants as double to avoid integer overflow in some compilers.
parent
dbb75036
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/backend/utils/adt/date.c
src/backend/utils/adt/date.c
+12
-12
No files found.
src/backend/utils/adt/date.c
View file @
20f84809
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.8
0 2003/04/04 04:50:4
4 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.8
1 2003/04/08 17:02:0
4 tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -645,17 +645,17 @@ AdjustTimeForTypmod(TimeADT *time, int32 typmod)
...
@@ -645,17 +645,17 @@ AdjustTimeForTypmod(TimeADT *time, int32 typmod)
#else
#else
/* note MAX_TIME_PRECISION differs in this case */
/* note MAX_TIME_PRECISION differs in this case */
static
const
double
TimeScales
[
MAX_TIME_PRECISION
+
1
]
=
{
static
const
double
TimeScales
[
MAX_TIME_PRECISION
+
1
]
=
{
1
,
1
.
0
,
10
,
10
.
0
,
100
,
100
.
0
,
1000
,
1000
.
0
,
10000
,
10000
.
0
,
100000
,
100000
.
0
,
1000000
,
1000000
.
0
,
10000000
,
10000000
.
0
,
100000000
,
100000000
.
0
,
1000000000
,
1000000000
.
0
,
10000000000
10000000000
.
0
};
};
#endif
#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