Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
45409f0c
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,发现更多精彩内容 >>
提交
45409f0c
编写于
6月 23, 1997
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove code not previously enabled with USE_NEW_DATE and USE_NEW_TIME
#defines.
上级
74242544
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
63 deletion
+3
-63
src/include/utils/builtins.h
src/include/utils/builtins.h
+1
-26
src/include/utils/datetime.h
src/include/utils/datetime.h
+1
-27
src/include/utils/dt.h
src/include/utils/dt.h
+1
-10
未找到文件。
src/include/utils/builtins.h
浏览文件 @
45409f0c
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.1
8 1997/05/14 04:33:41
thomas Exp $
* $Id: builtins.h,v 1.1
9 1997/06/23 15:03:38
thomas Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -481,8 +481,6 @@ extern struct varlena *byteaSetByte(struct varlena *v, int32 n, int32 newByte);
extern
struct
varlena
*
byteaSetBit
(
struct
varlena
*
v
,
int32
n
,
int32
newBit
);
/* datetime.c */
#if USE_NEW_DATE
extern
DateADT
date_in
(
char
*
datestr
);
extern
char
*
date_out
(
DateADT
dateVal
);
extern
bool
date_eq
(
DateADT
dateVal1
,
DateADT
dateVal2
);
...
...
@@ -502,29 +500,6 @@ extern DateADT datetime_date(DateTime *datetime);
extern
DateTime
*
datetime_datetime
(
DateADT
date
,
TimeADT
*
time
);
extern
DateADT
abstime_date
(
AbsoluteTime
abstime
);
#else
extern
int4
date_in
(
char
*
datestr
);
extern
char
*
date_out
(
int4
dateVal
);
extern
bool
date_eq
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_ne
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_lt
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_le
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_gt
(
int4
dateVal1
,
int4
dateVal2
);
extern
bool
date_ge
(
int4
dateVal1
,
int4
dateVal2
);
extern
int
date_cmp
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_larger
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_smaller
(
int4
dateVal1
,
int4
dateVal2
);
extern
int32
date_mi
(
int4
dateVal1
,
int4
dateVal2
);
extern
int4
date_pli
(
int4
dateVal
,
int32
days
);
extern
int4
date_mii
(
int4
dateVal
,
int32
days
);
extern
DateTime
*
date_datetime
(
int4
date
);
extern
int4
datetime_date
(
DateTime
*
datetime
);
extern
DateTime
*
datetime_datetime
(
int4
date
,
TimeADT
*
time
);
extern
int4
abstime_date
(
AbsoluteTime
abstime
);
#endif
extern
TimeADT
*
time_in
(
char
*
timestr
);
extern
char
*
time_out
(
TimeADT
*
time
);
extern
bool
time_eq
(
TimeADT
*
time1
,
TimeADT
*
time2
);
...
...
src/include/utils/datetime.h
浏览文件 @
45409f0c
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: datetime.h,v 1.
2 1997/03/14 23:33:21 scrappy
Exp $
* $Id: datetime.h,v 1.
3 1997/06/23 15:03:41 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,34 +15,8 @@
#include "utils/dt.h"
#if USE_NEW_DATE
typedef
int32
DateADT
;
#else
/* these things look like structs, but we pass them by value so be careful
For example, passing an int -> DateADT is not portable! */
typedef
struct
DateADT
{
char
day
;
char
month
;
short
year
;
}
DateADT
;
#endif
#if USE_NEW_TIME
typedef
float8
TimeADT
;
#else
typedef
struct
TimeADT
{
short
hr
;
short
min
;
float
sec
;
}
TimeADT
;
#endif
#endif
/* DATETIME_H */
src/include/utils/dt.h
浏览文件 @
45409f0c
...
...
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dt.h,v 1.1
1 1997/06/20 17:15:00
thomas Exp $
* $Id: dt.h,v 1.1
2 1997/06/23 15:03:45
thomas Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -36,15 +36,6 @@ typedef struct {
}
TimeSpan
;
/*
* USE_NEW_DATE enables a more efficient Julian day-based date type.
* USE_NEW_TIME enables a more efficient double-based time type.
*/
#define USE_NEW_DATE 1
#define USE_NEW_TIME 1
/* ----------------------------------------------------------------
* time types + support macros
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录