Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3758affc
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3758affc
编写于
7月 22, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More removal of unneeded parentheses.
上级
ca256f32
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+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
未找到文件。
src/backend/utils/adt/timestamp.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录