Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
573f4500
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,发现更多精彩内容 >>
提交
573f4500
编写于
9月 10, 2003
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some uppercase type definitions were left.
上级
0f310ee7
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
31 addition
and
21 deletion
+31
-21
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+10
-0
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/compatlib/informix.c
+9
-9
src/interfaces/ecpg/include/ecpg_informix.h
src/interfaces/ecpg/include/ecpg_informix.h
+12
-12
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
573f4500
...
...
@@ -1612,6 +1612,16 @@ Tue Aug 26 18:06:45 CEST 2003
Mon Sep 1 14:33:10 CEST 2003
- Fixed two bugs in numeric library.
Tue Sep 9 12:13:51 CEST 2003
- Added Dave patch for Informix handling of numeric/int conversion.
- Changed all new datatypes to lowercase.
- Fixed rounding bug in numerical types.
Wed Sep 10 20:01:49 CEST 2003
- Some files still had uppercase typenames
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/compatlib/informix.c
浏览文件 @
573f4500
...
...
@@ -426,7 +426,7 @@ dectolong(decimal * np, long *lngp)
/* Now the date functions */
int
rdatestr
(
D
ate
d
,
char
*
str
)
rdatestr
(
d
ate
d
,
char
*
str
)
{
char
*
tmp
=
PGTYPESdate_to_asc
(
d
);
...
...
@@ -441,9 +441,9 @@ rdatestr(Date d, char *str)
}
int
rstrdate
(
char
*
str
,
D
ate
*
d
)
rstrdate
(
char
*
str
,
d
ate
*
d
)
{
D
ate
dat
=
PGTYPESdate_from_asc
(
str
,
NULL
);
d
ate
dat
=
PGTYPESdate_from_asc
(
str
,
NULL
);
if
(
errno
!=
PGTYPES_DATE_BAD_DATE
&&
dat
==
0
)
return
-
1218
;
...
...
@@ -453,14 +453,14 @@ rstrdate(char *str, Date * d)
}
void
rtoday
(
D
ate
*
d
)
rtoday
(
d
ate
*
d
)
{
PGTYPESdate_today
(
d
);
return
;
}
int
rjulmdy
(
D
ate
d
,
short
mdy
[
3
])
rjulmdy
(
d
ate
d
,
short
mdy
[
3
])
{
int
mdy_int
[
3
];
...
...
@@ -472,7 +472,7 @@ rjulmdy(Date d, short mdy[3])
}
int
rdefmtdate
(
D
ate
*
d
,
char
*
fmt
,
char
*
str
)
rdefmtdate
(
d
ate
*
d
,
char
*
fmt
,
char
*
str
)
{
/* TODO: take care of DBCENTURY environment variable */
/* PGSQL functions allow all centuries */
...
...
@@ -497,7 +497,7 @@ rdefmtdate(Date * d, char *fmt, char *str)
}
int
rfmtdate
(
D
ate
d
,
char
*
fmt
,
char
*
str
)
rfmtdate
(
d
ate
d
,
char
*
fmt
,
char
*
str
)
{
if
(
PGTYPESdate_fmt_asc
(
d
,
fmt
,
str
)
==
0
)
return
0
;
...
...
@@ -509,7 +509,7 @@ rfmtdate(Date d, char *fmt, char *str)
}
int
rmdyjul
(
short
mdy
[
3
],
D
ate
*
d
)
rmdyjul
(
short
mdy
[
3
],
d
ate
*
d
)
{
int
mdy_int
[
3
];
...
...
@@ -521,7 +521,7 @@ rmdyjul(short mdy[3], Date * d)
}
int
rdayofweek
(
D
ate
d
)
rdayofweek
(
d
ate
d
)
{
return
(
PGTYPESdate_dayofweek
(
d
));
}
...
...
src/interfaces/ecpg/include/ecpg_informix.h
浏览文件 @
573f4500
...
...
@@ -8,18 +8,18 @@
#define SQLNOTFOUND 100
#ifndef
D
ate
#define
D
ate long
#endif
/* !
D
ate */
#ifndef
d
ate
#define
d
ate long
#endif
/* !
d
ate */
extern
int
rdatestr
(
D
ate
,
char
*
);
extern
void
rtoday
(
D
ate
*
);
extern
int
rjulmdy
(
D
ate
,
short
*
);
extern
int
rdefmtdate
(
D
ate
*
,
char
*
,
char
*
);
extern
int
rfmtdate
(
D
ate
,
char
*
,
char
*
);
extern
int
rmdyjul
(
short
*
,
D
ate
*
);
extern
int
rstrdate
(
char
*
,
D
ate
*
);
extern
int
rdayofweek
(
D
ate
);
extern
int
rdatestr
(
d
ate
,
char
*
);
extern
void
rtoday
(
d
ate
*
);
extern
int
rjulmdy
(
d
ate
,
short
*
);
extern
int
rdefmtdate
(
d
ate
*
,
char
*
,
char
*
);
extern
int
rfmtdate
(
d
ate
,
char
*
,
char
*
);
extern
int
rmdyjul
(
short
*
,
d
ate
*
);
extern
int
rstrdate
(
char
*
,
d
ate
*
);
extern
int
rdayofweek
(
d
ate
);
extern
int
rfmtlong
(
long
,
char
*
,
char
*
);
extern
int
rgetmsg
(
int
,
char
*
,
int
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录