Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
491dc124
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,发现更多精彩内容 >>
提交
491dc124
编写于
5月 10, 2004
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- Argh, just another bug in adjust_informix.
- Added "extern C" flags for C++ compiler. Hopefully I got that one right.
上级
b071a400
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
52 addition
and
3 deletion
+52
-3
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/include/ecpg_informix.h
src/interfaces/ecpg/include/ecpg_informix.h
+10
-1
src/interfaces/ecpg/include/pgtypes_date.h
src/interfaces/ecpg/include/pgtypes_date.h
+8
-0
src/interfaces/ecpg/include/pgtypes_interval.h
src/interfaces/ecpg/include/pgtypes_interval.h
+9
-0
src/interfaces/ecpg/include/pgtypes_numeric.h
src/interfaces/ecpg/include/pgtypes_numeric.h
+9
-0
src/interfaces/ecpg/include/pgtypes_timestamp.h
src/interfaces/ecpg/include/pgtypes_timestamp.h
+9
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+2
-2
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
491dc124
...
...
@@ -1790,6 +1790,11 @@ Fri May 7 15:34:05 CEST 2004
- Added portability file to pgtypeslib.
- Fixed bug that reversed string length in typedefs.
- Added additional test case.
Mon May 10 15:38:58 CEST 2004
- Argh, just another bug in adjust_informix.
- Added "extern C" flags for C++ compiler.
- Set pgtypes library version to 1.2.
- Set ecpg version to 3.2.0.
- Set compat library version to 1.2.
...
...
src/interfaces/ecpg/include/ecpg_informix.h
浏览文件 @
491dc124
/*
* This file contains stuff needed to be as compatible to Informix as possible.
*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpg_informix.h,v 1.1
4 2003/12/18 18:55:09 petere
Exp $
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpg_informix.h,v 1.1
5 2004/05/10 13:46:06 meskes
Exp $
*/
#ifndef _ECPG_INFORMIX_H
#define _ECPG_INFORMIX_H
...
...
@@ -29,6 +29,11 @@
#define ECPG_INFORMIX_BAD_DATE -1218
#define ECPG_INFORMIX_EXTRA_CHARS -1264
#ifdef __cplusplus
extern
"C"
{
#endif
extern
int
rdatestr
(
date
,
char
*
);
extern
void
rtoday
(
date
*
);
extern
int
rjulmdy
(
date
,
short
*
);
...
...
@@ -78,4 +83,8 @@ extern int dttofmtasc(timestamp *, char *, int, char *);
extern
int
intoasc
(
interval
*
,
char
*
);
extern
int
dtcvfmtasc
(
char
*
,
char
*
,
timestamp
*
);
#ifdef __cplusplus
}
#endif
#endif
/* ndef _ECPG_INFORMIX_H */
src/interfaces/ecpg/include/pgtypes_date.h
浏览文件 @
491dc124
...
...
@@ -4,6 +4,10 @@
#include <pgtypes_timestamp.h>
typedef
long
date
;
#ifdef __cplusplus
extern
"C"
{
#endif
extern
date
PGTYPESdate_from_asc
(
char
*
,
char
**
);
extern
char
*
PGTYPESdate_to_asc
(
date
);
...
...
@@ -15,4 +19,8 @@ extern void PGTYPESdate_today(date *);
extern
int
PGTYPESdate_defmt_asc
(
date
*
,
char
*
,
char
*
);
extern
int
PGTYPESdate_fmt_asc
(
date
,
char
*
,
char
*
);
#ifdef __cplusplus
}
#endif
#endif
/* PGTYPES_DATETIME */
src/interfaces/ecpg/include/pgtypes_interval.h
浏览文件 @
491dc124
...
...
@@ -14,8 +14,17 @@ typedef struct
* alignment */
}
interval
;
#ifdef __cplusplus
extern
"C"
{
#endif
extern
interval
*
PGTYPESinterval_from_asc
(
char
*
,
char
**
);
extern
char
*
PGTYPESinterval_to_asc
(
interval
*
);
extern
int
PGTYPESinterval_copy
(
interval
*
,
interval
*
);
#ifdef __cplusplus
}
#endif
#endif
/* PGTYPES_INTERVAL */
src/interfaces/ecpg/include/pgtypes_numeric.h
浏览文件 @
491dc124
...
...
@@ -37,6 +37,11 @@ typedef struct
NumericDigit
digits
[
DECSIZE
];
/* decimal digits */
}
decimal
;
#ifdef __cplusplus
extern
"C"
{
#endif
numeric
*
PGTYPESnumeric_new
(
void
);
void
PGTYPESnumeric_free
(
numeric
*
);
numeric
*
PGTYPESnumeric_from_asc
(
char
*
,
char
**
);
...
...
@@ -56,4 +61,8 @@ int PGTYPESnumeric_to_long(numeric *, long *);
int
PGTYPESnumeric_to_decimal
(
numeric
*
,
decimal
*
);
int
PGTYPESnumeric_from_decimal
(
decimal
*
,
numeric
*
);
#ifdef __cplusplus
}
#endif
#endif
/* PGTYPES_NUMERIC */
src/interfaces/ecpg/include/pgtypes_timestamp.h
浏览文件 @
491dc124
...
...
@@ -12,6 +12,11 @@ typedef double timestamp;
typedef
double
TimestampTz
;
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
extern
timestamp
PGTYPEStimestamp_from_asc
(
char
*
,
char
**
);
extern
char
*
PGTYPEStimestamp_to_asc
(
timestamp
);
extern
int
PGTYPEStimestamp_sub
(
timestamp
*
,
timestamp
*
,
interval
*
);
...
...
@@ -19,4 +24,8 @@ extern int PGTYPEStimestamp_fmt_asc(timestamp *, char *, int, char *);
extern
void
PGTYPEStimestamp_current
(
timestamp
*
);
extern
int
PGTYPEStimestamp_defmt_asc
(
char
*
,
char
*
,
timestamp
*
);
#ifdef __cplusplus
}
#endif
#endif
/* PGTYPES_TIMESTAMP */
src/interfaces/ecpg/preproc/preproc.y
浏览文件 @
491dc124
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.28
1 2004/05/07 13:42:49
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.28
2 2004/05/10 13:46:06
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -209,7 +209,7 @@ adjust_informix(struct arguments *list)
original_var = ptr->variable->name;
sprintf(temp, "%d))", ecpg_informix_var);
if (atoi(ptr->variable->type->size) > 1)
if (
(ptr->variable->type->type != ECPGt_char && ptr->variable->type->type != ECPGt_unsigned_char) &&
atoi(ptr->variable->type->size) > 1)
{
ptr->variable = new_variable(cat_str(4, make_str("("), mm_strdup(ECPGtype_name(ptr->variable->type->u.element->type)), make_str(" *)(ECPG_informix_get_var("), mm_strdup(temp)), ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type, make_str("1")), ptr->variable->type->size), 0);
sprintf(temp, "%d, (", ecpg_informix_var++);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录