Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
1e277911
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,发现更多精彩内容 >>
提交
1e277911
编写于
10月 15, 2001
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some portability problems (get it to compile, at least, on HP's cc)
上级
394925b6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
13 deletion
+11
-13
contrib/dbase/dbf2pg.c
contrib/dbase/dbf2pg.c
+10
-12
contrib/dblink/dblink.c
contrib/dblink/dblink.c
+1
-1
未找到文件。
contrib/dbase/dbf2pg.c
浏览文件 @
1e277911
...
...
@@ -5,14 +5,12 @@
oktober 1996: merged sources of dbf2msql.c and dbf2pg.c
oktober 1997: removed msql support
*/
#define HAVE_TERMIOS_H
#define HAVE_ICONV_H
#include "postgres_fe.h"
#define HAVE_ICONV_H
/* should be somewhere else */
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
...
...
@@ -21,13 +19,14 @@
#include <iconv.h>
#endif
#include
<libpq-fe.h>
#include
"libpq-fe.h"
#include "dbf.h"
int
verbose
=
0
,
upper
=
0
,
lower
=
0
,
create
=
0
,
fieldlow
=
0
;
int
del
=
0
;
unsigned
int
begin
=
0
,
end
=
0
;
unsigned
int
t_block
=
0
;
#ifdef HAVE_ICONV_H
char
*
charset_from
=
NULL
;
char
*
charset_to
=
"ISO-8859-1"
;
...
...
@@ -158,12 +157,11 @@ int check_table(PGconn *conn, char *table) {
}
void
usage
(
void
){
printf
(
"\
dbf2pg
usage: dbf2pg [-u | -l] [-h hostname] [-W] [-U username]
[-B transaction_size] [-F charset_from [-T charset_to]]
[-s oldname=newname[,oldname=newname[...]]] [-d dbase]
[-t table] [-c | -D] [-f] [-v[v]] dbf-file
\n
"
);
printf
(
"dbf2pg
\n
"
"usage: dbf2pg [-u | -l] [-h hostname] [-W] [-U username]
\n
"
" [-B transaction_size] [-F charset_from [-T charset_to]]
\n
"
" [-s oldname=newname[,oldname=newname[...]]] [-d dbase]
\n
"
" [-t table] [-c | -D] [-f] [-v[v]] dbf-file
\n
"
);
}
/* patch submitted by Jeffrey Y. Sue <jysue@aloha.net> */
...
...
contrib/dblink/dblink.c
浏览文件 @
1e277911
...
...
@@ -111,7 +111,7 @@ dblink(PG_FUNCTION_ARGS)
results
->
res
=
res
;
res
=
NULL
;
(
dblink_results
*
)
fcinfo
->
flinfo
->
fn_extra
=
results
;
fcinfo
->
flinfo
->
fn_extra
=
(
void
*
)
results
;
results
=
NULL
;
results
=
fcinfo
->
flinfo
->
fn_extra
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录