Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7547b010
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,发现更多精彩内容 >>
提交
7547b010
编写于
10月 05, 2001
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Define CEST as a synonym for Central European Savings Time
per Jan Varga <varga@utcru.sk> Fix up spacing and formatting.
上级
bd97e4e7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
17 deletion
+10
-17
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+2
-9
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/timestamp.c
+8
-8
未找到文件。
src/backend/utils/adt/datetime.c
浏览文件 @
7547b010
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.
69 2001/10/04 17:10:11 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.
70 2001/10/05 06:38:59 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -98,6 +98,7 @@ static datetkn datetktbl[] = {
{
"cat"
,
TZ
,
NEG
(
60
)},
/* Central Alaska Time */
{
"cct"
,
TZ
,
48
},
/* China Coast */
{
"cdt"
,
DTZ
,
NEG
(
30
)},
/* Central Daylight Time */
{
"cest"
,
DTZ
,
12
},
/* Central European Dayl.Time */
{
"cet"
,
TZ
,
6
},
/* Central European Time */
{
"cetdst"
,
DTZ
,
12
},
/* Central European Dayl.Time */
{
"cst"
,
TZ
,
NEG
(
36
)},
/* Central Standard Time */
...
...
@@ -772,11 +773,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
case
DTK_NOW
:
tmask
=
(
DTK_DATE_M
|
DTK_TIME_M
|
DTK_M
(
TZ
));
*
dtype
=
DTK_DATE
;
#if NOT_USED
GetCurrentTime
(
tm
);
#else
GetCurrentTimeUsec
(
tm
,
fsec
);
#endif
if
(
tzp
!=
NULL
)
*
tzp
=
CTimeZone
;
break
;
...
...
@@ -1151,11 +1148,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
case
DTK_NOW
:
tmask
=
DTK_TIME_M
;
*
dtype
=
DTK_TIME
;
#if NOT_USED
GetCurrentTime
(
tm
);
#else
GetCurrentTimeUsec
(
tm
,
fsec
);
#endif
break
;
case
DTK_ZULU
:
...
...
src/backend/utils/adt/timestamp.c
浏览文件 @
7547b010
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.5
4 2001/10/04 14:49:57 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.5
5 2001/10/05 06:38:59 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1400,8 +1400,8 @@ interval_accum(PG_FUNCTION_ARGS)
memcpy
(
&
N
,
DatumGetIntervalP
(
transdatums
[
1
]),
sizeof
(
Interval
));
newsum
=
DatumGetIntervalP
(
DirectFunctionCall2
(
interval_pl
,
IntervalPGetDatum
(
&
sumX
),
IntervalPGetDatum
(
newval
)));
IntervalPGetDatum
(
&
sumX
),
IntervalPGetDatum
(
newval
)));
N
.
time
+=
1
;
transdatums
[
0
]
=
IntervalPGetDatum
(
newsum
);
...
...
@@ -1856,7 +1856,7 @@ timestamp_trunc(PG_FUNCTION_ARGS)
if
(
VARSIZE
(
units
)
-
VARHDRSZ
>
MAXDATELEN
)
elog
(
ERROR
,
"Interval units '%s' not recognized"
,
DatumGetCString
(
DirectFunctionCall1
(
textout
,
PointerGetDatum
(
units
))));
PointerGetDatum
(
units
))));
up
=
VARDATA
(
units
);
lp
=
lowunits
;
for
(
i
=
0
;
i
<
(
VARSIZE
(
units
)
-
VARHDRSZ
);
i
++
)
...
...
@@ -1943,7 +1943,7 @@ timestamptz_trunc(PG_FUNCTION_ARGS)
if
(
VARSIZE
(
units
)
-
VARHDRSZ
>
MAXDATELEN
)
elog
(
ERROR
,
"Interval units '%s' not recognized"
,
DatumGetCString
(
DirectFunctionCall1
(
textout
,
PointerGetDatum
(
units
))));
PointerGetDatum
(
units
))));
up
=
VARDATA
(
units
);
lp
=
lowunits
;
for
(
i
=
0
;
i
<
(
VARSIZE
(
units
)
-
VARHDRSZ
);
i
++
)
...
...
@@ -2032,7 +2032,7 @@ interval_trunc(PG_FUNCTION_ARGS)
if
(
VARSIZE
(
units
)
-
VARHDRSZ
>
MAXDATELEN
)
elog
(
ERROR
,
"Interval units '%s' not recognized"
,
DatumGetCString
(
DirectFunctionCall1
(
textout
,
PointerGetDatum
(
units
))));
PointerGetDatum
(
units
))));
up
=
VARDATA
(
units
);
lp
=
lowunits
;
for
(
i
=
0
;
i
<
(
VARSIZE
(
units
)
-
VARHDRSZ
);
i
++
)
...
...
@@ -2569,7 +2569,7 @@ interval_part(PG_FUNCTION_ARGS)
default:
elog
(
ERROR
,
"Interval units '%s' not supported"
,
DatumGetCString
(
DirectFunctionCall1
(
textout
,
PointerGetDatum
(
units
))));
PointerGetDatum
(
units
))));
result
=
0
;
}
...
...
@@ -2594,7 +2594,7 @@ interval_part(PG_FUNCTION_ARGS)
{
elog
(
ERROR
,
"Interval units '%s' not recognized"
,
DatumGetCString
(
DirectFunctionCall1
(
textout
,
PointerGetDatum
(
units
))));
PointerGetDatum
(
units
))));
result
=
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录