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
48f8fa9c
Commit
48f8fa9c
authored
Apr 26, 2019
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix for zic.c.
Missed an inttypes.h dependency in previous patch. Per buildfarm.
parent
a9678784
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/timezone/README
src/timezone/README
+2
-0
src/timezone/zic.c
src/timezone/zic.c
+3
-3
No files found.
src/timezone/README
View file @
48f8fa9c
...
...
@@ -117,6 +117,8 @@ to first run the tzcode source files through a sed filter like this:
-e 's/intmax_t/int64/g' \
-e 's/INT32_MIN/PG_INT32_MIN/g' \
-e 's/INT32_MAX/PG_INT32_MAX/g' \
-e 's/INTMAX_MIN/PG_INT64_MIN/g' \
-e 's/INTMAX_MAX/PG_INT64_MAX/g' \
-e 's/struct[ \t]+tm\b/struct pg_tm/g' \
-e 's/\btime_t\b/pg_time_t/g' \
-e 's/lineno/lineno_t/g' \
...
...
src/timezone/zic.c
View file @
48f8fa9c
...
...
@@ -599,7 +599,7 @@ timerange_option(char *timerange)
{
errno
=
0
;
lo
=
strtoimax
(
timerange
+
1
,
&
lo_end
,
10
);
if
(
lo_end
==
timerange
+
1
||
(
lo
==
INTMAX
_MAX
&&
errno
==
ERANGE
))
if
(
lo_end
==
timerange
+
1
||
(
lo
==
PG_INT64
_MAX
&&
errno
==
ERANGE
))
return
false
;
}
hi_end
=
lo_end
;
...
...
@@ -607,9 +607,9 @@ timerange_option(char *timerange)
{
errno
=
0
;
hi
=
strtoimax
(
lo_end
+
2
,
&
hi_end
,
10
);
if
(
hi_end
==
lo_end
+
2
||
hi
==
INTMAX
_MIN
)
if
(
hi_end
==
lo_end
+
2
||
hi
==
PG_INT64
_MIN
)
return
false
;
hi
-=
!
(
hi
==
INTMAX
_MAX
&&
errno
==
ERANGE
);
hi
-=
!
(
hi
==
PG_INT64
_MAX
&&
errno
==
ERANGE
);
}
if
(
*
hi_end
||
hi
<
lo
||
max_time
<
lo
||
hi
<
min_time
)
return
false
;
...
...
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