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
3758affc
Commit
3758affc
authored
Jul 22, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More removal of unneeded parentheses.
parent
ca256f32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/timestamp.c
+5
-5
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/dt_common.c
+1
-1
src/interfaces/ecpg/pgtypeslib/timestamp.c
src/interfaces/ecpg/pgtypeslib/timestamp.c
+1
-1
No files found.
src/backend/utils/adt/timestamp.c
View file @
3758affc
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.14
0 2005/07/22 15:15:38
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.14
1 2005/07/22 19:00:54
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1006,7 +1006,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
* specified. Go ahead and rotate to the local time zone since we will
* later bypass any calls which adjust the tm fields.
*/
if
(
(
attimezone
==
NULL
)
&&
HasCTZSet
&&
(
tzp
!=
NULL
)
)
if
(
attimezone
==
NULL
&&
HasCTZSet
&&
tzp
!=
NULL
)
{
#ifdef HAVE_INT64_TIMESTAMP
dt
-=
CTimeZone
*
USECS_PER_SEC
;
...
...
@@ -1059,7 +1059,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
* We have a brute force time zone per SQL99? Then use it without
* change since we have already rotated to the time zone.
*/
if
(
(
attimezone
==
NULL
)
&&
HasCTZSet
)
if
(
attimezone
==
NULL
&&
HasCTZSet
)
{
*
tzp
=
CTimeZone
;
tm
->
tm_isdst
=
0
;
...
...
@@ -1102,7 +1102,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
tm
->
tm_isdst
=
tx
->
tm_isdst
;
tm
->
tm_gmtoff
=
tx
->
tm_gmtoff
;
tm
->
tm_zone
=
tx
->
tm_zone
;
*
tzp
=
-
(
tm
->
tm_gmtoff
)
;
*
tzp
=
-
tm
->
tm_gmtoff
;
if
(
tzn
!=
NULL
)
*
tzn
=
(
char
*
)
tm
->
tm_zone
;
}
...
...
@@ -4146,7 +4146,7 @@ timestamptz_izone(PG_FUNCTION_ARGS)
#ifdef HAVE_INT64_TIMESTAMP
tz
=
-
(
zone
->
time
/
USECS_PER_SEC
);
#else
tz
=
-
(
zone
->
time
)
;
tz
=
-
zone
->
time
;
#endif
result
=
dt2local
(
timestamp
,
tz
);
...
...
src/interfaces/ecpg/pgtypeslib/dt_common.c
View file @
3758affc
...
...
@@ -1136,7 +1136,7 @@ DetermineLocalTimeZone(struct tm *tm)
#if defined(HAVE_TM_ZONE)
/* tm_gmtoff is Sun/DEC-ism */
tz
=
-
(
tmp
->
tm_gmtoff
)
;
tz
=
-
tmp
->
tm_gmtoff
;
#elif defined(HAVE_INT_TIMEZONE)
tz
=
(
tmp
->
tm_isdst
>
0
)
?
TIMEZONE_GLOBAL
-
SECS_PER_HOUR
:
TIMEZONE_GLOBAL
;
#endif
/* HAVE_INT_TIMEZONE */
...
...
src/interfaces/ecpg/pgtypeslib/timestamp.c
View file @
3758affc
...
...
@@ -217,7 +217,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, char **tzn)
tm
->
tm_gmtoff
=
tx
->
tm_gmtoff
;
tm
->
tm_zone
=
tx
->
tm_zone
;
*
tzp
=
-
(
tm
->
tm_gmtoff
)
;
/* tm_gmtoff is Sun/DEC-ism */
*
tzp
=
-
tm
->
tm_gmtoff
;
/* tm_gmtoff is Sun/DEC-ism */
if
(
tzn
!=
NULL
)
*
tzn
=
(
char
*
)
tm
->
tm_zone
;
#elif defined(HAVE_INT_TIMEZONE)
...
...
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