Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1e277911
Commit
1e277911
authored
Oct 15, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some portability problems (get it to compile, at least, on HP's cc)
parent
394925b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
contrib/dbase/dbf2pg.c
contrib/dbase/dbf2pg.c
+10
-12
contrib/dblink/dblink.c
contrib/dblink/dblink.c
+1
-1
No files found.
contrib/dbase/dbf2pg.c
View file @
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
View file @
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment